How can I get the grids model from a custom column editor?

2 posts, 0 answers
  1. Gregory
    Gregory avatar
    30 posts
    Member since:
    Feb 2014

    Posted 03 Apr 2017 Link to this post

    Hi, anyone know how can I get my grid's current row being edited?  I would do this from an event for a custom column editor. The whole idea is that I have a grid with inline editing and use an autocomplete editor template. During the autocomplete's select event I want to populate multiple fields of my grid's row. I can't seem to get a reference to the grids row.  All the examples I see say to use the 'select()' method, but my grid has row selection disabled (on purpose). Here is an example of a snippet that doesn't work:

    var grid = $('#mygrid').data('kendoGrid');
    var selectedItem = grid.dataItem(;


    Any suggestions would be greatly appreciated!

  2. Stefan
    Stefan avatar
    3009 posts

    Posted 05 Apr 2017 Link to this post

    Hello Gregory,

    The desired result can be achieved using the edit event of the Grid, as in 'inline' edit mode, it will return the currently edited row. Then that row can be saved in a variable, and the variable used in the dataItem method:

    Please check the following example demonstrating this:

    I hope this is helpful.

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top