I have a problem with the Grid + custom editor widget.
The custom editor, in this case "productDropDownEditor", should show the productName and update the field value with productID.
When you select an item on the DropDownEditor the grid shows the productID instead of the productName.
What am I doing wrong?
10 Answers, 1 is accepted
Try to use the same approach as the one in the following online example. Note that the Category field in the data source for the grid is an object.
I'm sitting on this problem for a week now but without success..
I need a grid with a custom editor like in the example http://demos.telerik.com/kendo-ui/grid/editing-custom.
But in the example the categoryDropDownEditor is using odata, is it also possible with json?
For me it's not working with json transport. This line (especially the template: )seems not to work with json:
You can configure the dataSource of the custom editor so that it uses JSON. In that case you should omit the type property.
The following dojo illustrates how you can use Kendo DataSource with JSON.
thanks for your answer!
I'm still struggling with my problem: I need to show ProductName but set the value to ProductID.
Can you tell me why it's showing the ProductID instead of the ProductName after selecting an item in the dropdownEditor http://dojo.telerik.com/AlEGU ?
I just figured out ow to solve my ReferenceError, by setting a default value.
But now another problem: When set "group" in dataSource the grid throws out "undefined" after choosing an item.
I attached two images where you can see that everything (grouping) looks good in the dropdown but after selecting the grid throws out "undefined".
Can you tell me what's wrong here?
Would you modify the following dojo in a way that the behavior you are seeing is replicated and provide a link? Thus, we would be able to examine the issue and look for what could cause it.
thanks for your reply.
While inserting and modifying my code into Dojo,it worked fine. I found out that using the latest Kendo UI version fixes the problem (I used v2015.2.624).
But thank you so much again!
I am glad that the issue is resolved. Thank you for sharing your findings with the community.