After calling addRow how to get the just added row?

2 posts, 0 answers
  1. Jiatang
    Jiatang avatar
    9 posts
    Member since:
    Sep 2015

    Posted 07 Apr 2016 Link to this post

    After calling the addRow, I want to have a way to get that row. Both the html jQuery object and the dataItem.

    We cannot assume that the added new row is always at top or bottom. If you have ever sorted the gird, the added row may be in the middle.

    The best way is having the addRow method return the jQuery object.

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 11 Apr 2016 Link to this post

    Hello Jiatang,

    My suggestion is to use the add method of the Kendo UI DataSource, which returns the data item. If the item is rendered as a table row you can find the table row element by using the data-uid attribute. Same data-uid value is applied to the data item and the table row element. 

    Regards,
    Boyan Dimitrov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top