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

kendo Grid

3 Answers 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Navin
Top achievements
Rank 1
Navin asked on 17 Aug 2012, 04:44 PM
How to get and set value to particular cell of  kendoGrid programmatically?

3 Answers, 1 is accepted

Sort by
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!
0
Jack
Top achievements
Rank 1
answered on 26 Oct 2012, 03:30 AM
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!
Tags
General Discussions
Asked by
Navin
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Jack
Top achievements
Rank 1
Share this question
or