Kendo Grid Custom Editor Dropdown is not accessible in Popup Mode - model-view-controller

I am using the Kendo Grid where i need to display dropdownlist as one of the column in the grid to allow users to select State. Here the source of the State can be different for each record. The source of the state is different based on TaskInstanceId property of the record.
The problem i am having is in the popup edit mode the dropdownlist column is not being displayed. And in the inline edit mode dropdownlist is not being displayed until i go in the edit mode. Until i go into edit mode it displays textbox with no value in the textbox.
Please find the sample project attached with this email.
Regards,
Sanjay Patel

Related

Kendo UI for MVC combobox autoclearing user entered text

I am working on a page that has a Telerik UI for MVC ComboBox. Currently the ComboBox does not keep user input once the datasource has returned any value from the database. Even if you reload the page, the ComboBox will remember the value from the Datasource and delete any user input once the focus is changed to another input field.
I need the ComboBox to keep user input if they do not select a value from the Datasource populated drop-down. Any help would be appreciated.
So I found the answer on the Kendo UI API reference. If you set the .SyncValueAndText(boolean) to false it will allow custom text to stay in the ComboBox. By default this value is set to true which binds the text and value together.
Here is a link to the API Documentation:
https://docs.telerik.com/kendo-ui/api/javascript/ui/combobox/configuration/syncvalueandtext

kendoUI Grid Header Custom Menu

I want to show a kendomenu at the click on the column header of kendo grid.
Someone have some idea how can i do?
I try with columnmenu but is not customizable.. i want to create a custom menu for each column.

Kendo UI grid - different templates for Edit and Create

We are using Kendo UI grid to display some records. The requirements need us to have a column (Say "File Name")shown as a text box when the user clicks on "Edit".
However, when user clicks on the "Create" button in the toolbar, the same column should be replaced with a File Select control which will allow the user to select a file from his machine. The other columns remain the same.
I have already tried searching through Stack Overflow as well as the Kendo UI Grid forums, but to no avail.
Is there any way to achieve this? Any pointers will be of great help.
Regards,
Nikhil
Using different editor templates for create/edit is not supported. You need to use the edit event of the Grid to change that text input to file input with JavaScript. To distinguish between edit and create you can use the isNew() method of the model.
i.e.
edit:function(e){
if(e.model.isNew()){
//replacement logic
}
}
Similar question is covered here.

Display the column when inline edit is used & hide the same column in display mode

I am using Kendoui grid, in this i need to hide the field when it is in display mode,
But when i click on edit button it should show the column.
Example:-
In disaplymode it shows 6 column,
and in edit mode shows 7 columns.
Please send me related sample code.
Thanks in Advance.

UPDATE (Event) PROBLEM WITH AJAX ACCORDION CONTROL

I Have three records which I want to display in three Accordion Panes
which (every pane) will have a Header and a content ( Two label controls, 1 text box and 1 checkbox and 1 link button)
I am able to display data on the accrodion from database but when I am trying to Update the text in textbox by clicking link button the LINKBUTTON doesnot fire and unabel to make the update. How can we create Update event working ??
I am creating the Accordion Panes and Content controls statically and directly assigning the values to the controls from Code behind in Page Load.
I was able to do it using the "ItemCommand" event of the Accordion Panel by using the Command Name property of a Link Button which will update the Text Boxes.
It works for me now but I felt JQUERY will be a better option which has no postback, css issues..

Resources