This is a migrated thread and some comments may be shown as answers.
Bug with Multiselect in a Grid
1 Answer 15 Views
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 16 Aug 2013, 07:14 PM
Using the following example project for a multi-select in a Grid:
http://www.kendoui.com/code-library/permalink/boByv66aG2OF1P8AAFTdxQ

Failure steps
  1. Run the project as-is.
  2. Edit any grid line.
  3. Add a Territory by typing the first few letters and pressing enter to select the highlighted item.
  4. Save the grid line

Issue

In the Update action, the ModelState is not valid and the Territories list in the EmployeeViewModel has null entries for the first X items (equivalent the the number of items existing before the update). The data POSTed from the grid seems to be inconsistent. New items are posted as TerritoryViewModel-type objects but the existing items are posted as the value (id) only.

Note
Adding at least one item by clicking with the mouse magically resolves this issue and all items are posted as complete objects.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 20 Aug 2013, 08:21 AM
Hello Patrick,

 
I believe that issue is related to a bug in the MultiSelect MVVM value binding, which is addressed in the latest internal build of Kendo UI. Could you please download it and give it a try? Let me know if the problem still persists.

Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Asked by
Patrick
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or