want to access the specific column data in the specific row

4 posts, 0 answers
  1. Sourav
    Sourav avatar
    28 posts
    Member since:
    Sep 2011

    Posted 28 Oct 2011 Link to this post

    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.
  2. Dimo
    Admin
    Dimo avatar
    8485 posts

    Posted 28 Oct 2011 Link to this post

    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!
  3. iliya
    iliya avatar
    8 posts
    Member since:
    Oct 2020

    Posted 15 Jan in reply to Dimo Link to this post

    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?

     

  4. Dimo
    Admin
    Dimo avatar
    8485 posts

    Posted 15 Jan Link to this post

    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/.

Back to Top