This is a migrated thread and some comments may be shown as answers.

Cannot update grid with Kendo Dropdownlist using remote data

1 Answer 152 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 22 Nov 2016, 09:08 PM

I have a grid which initially displays all data for my current remote query.  When a user clicks the 'Edit' button, the grid should be editable.  One of the columns will be a Kendo Dropdownlist displaying the possible selections.  I have attempted to recreate this below:

http://dojo.telerik.com/AJaKe

I could not fully create this scenario below as the dropdown is becoming locked upon clicking Edit.

My grid should have inline editing, a remote datasource, a Kendo Dropdownlist (upon clicking edit), have a remote datasource on the Kendo Dropdownlist and should have the ability to add a new row with the above requirements.

I need help modifying the above example to create the scenario I described.

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 24 Nov 2016, 12:12 PM
Hi Ryan,

Thank you for the provided runnable example. In this case, the dataType of the DropDownList dataSource.transport.read option should be specified (for the online demos sample remote service, it is "jsonp").

When the data items of the DropDownList are complex objects, but the Grid column the widget is bound to, holds a primitive value (in this case - string), the valuePrimitive option of the DropDownList should be set to true.

Furthermore, if a column template, referencing the column name, is to be used, a default value for the respective field should be provided in the dataSource.schema.model configuration.

I have updated the dojo with the suggested adjustments:

http://dojo.telerik.com/AJaKe/2

Regards,
Dimiter Topalov
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.
Tags
Grid
Asked by
Ryan
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or