How to get and set value to particular cell of kendoGrid programmatically?
3 Answers, 1 is accepted
0
Alexander Valchev
Telerik team
answered on 22 Aug 2012, 09:26 AM
Hi Navin,
The dataSource contains observable objects so if you want to manually get or set the field values you should use the get and set methods. Through the dataItem method of the grid you can retrieve the dataSource record to which a given grid row is bound.
Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
However, I noticed that after using dateItem.set("xxx", "yyy"), no dirty mark is shown (i.e. the little triangle). The version of Kendo of mine is 2012.2.913
0
Alexander Valchev
Telerik team
answered on 31 Oct 2012, 06:56 AM
Hello Jack,
The small red triangle is shown only when the item is edited through the editable interface. When you use the API methods to modify the data the dirty property is not expected to be set. If you want to visually mark the edited records you have to append the .k-dirty span manually.
Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!