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

want to access the specific column data in the specific row

3 Answers 394 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sourav
Top achievements
Rank 1
Sourav asked on 28 Oct 2011, 10:53 AM
I want to access the specific column data in the specific row in the kendo grid.How I can access it.
Please help me.Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 28 Oct 2011, 11:47 AM
Hello Sourav,

Use the dataItem() method of the Grid widget object:

$("#GridID").data("kendoGrid").dataItem(tableRow)

tableRow is a table row DOM element or jQuery object. The dataItem() method will return an object of key-value pairs: FieldName : Value.

Best wishes,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
iliya
Top achievements
Rank 1
Veteran
answered on 15 Jan 2021, 06:01 AM

i also need this behavior $("#GridID").data("kendoGrid").dataItem (rowID)  but it says not an item

tableRow u men the id? if not what is it?

 

0
Dimo
Telerik team
answered on 15 Jan 2021, 07:51 AM

Hi Iliya,

dataItem() accepts one of the following arguments: a jQuery selector string, a DOM element or a jQuery object.

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/dataitem

Please make sure the argument is correct. Naturally, the Grid ID should be correct and the widget instance should be obtained successfully. The browser's JavaScript debugger will confirm this.

Regards,
Dimo
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Sourav
Top achievements
Rank 1
Answers by
Dimo
Telerik team
iliya
Top achievements
Rank 1
Veteran
Share this question
or