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

Modifying values of a DropDownList column for selected rows

2 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 18 Jun 2020, 11:44 AM

Hello,

I want to modify the value of a DropDownList column for selected rows from outside the grid. 

I’m facing a problem, which can be reproduced in this sample:

http://dojo.telerik.com/urEboTUZ

When only one row is selected and the button "update" is clicked everythings works fine and as expected.  However, if I select multiple rows, only the cell of the first row is updated and only this cell is marked dirty.

I would be grateful if you could tell me how to change the code, that I can change the value of multiple rows.

Regards,
Stefan

2 Answers, 1 is accepted

Sort by
0
Accepted
Neli
Telerik team
answered on 22 Jun 2020, 10:17 AM

Hi Stefan,

Please refer to the following thread from StackOverflow where similar issue have been discussed. A suggestion is provided in the thread, so you could give it a try.

- https://stackoverflow.com/questions/51523299/kendo-grid-dataitem-loop-not-working

Also, the following threads from our Forum could be helpful:

- https://www.telerik.com/forums/looping-through-grid-s-dataitems

- https://www.telerik.com/forums/kendoui-grid---dataitem-set()-method-is-not-working

I hope the provided information will be helpful.

Regards,
Neli
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Stefan
Top achievements
Rank 1
answered on 24 Jun 2020, 11:51 AM

Hi Neli,

thank you for the quick and detailed answer. This solved the problem.

Regards,

Stefan

Tags
Grid
Asked by
Stefan
Top achievements
Rank 1
Answers by
Neli
Telerik team
Stefan
Top achievements
Rank 1
Share this question
or