Getting the selected row data on Grid Change event

4 posts, 1 answers
  1. Atanu
    Atanu avatar
    40 posts
    Member since:
    Jan 2012

    Posted 15 Oct 2012 Link to this post


    How to get the selected row data on Change event of the Kendo Gridd as follows

    .Events(events => events.Change("Grid_OnRowSelectUID"))

    I used to get that in Telerik grid by using the following

    Grid_OnRowSelectUID = function (e) {
        var row = e.row;
        RowSelectUid = row.firstChild.innerText;

    But somehow the parameter 'e' is not same in case of Kendo UI.

    Also the below statement  is also not working inside the above function which used to work with Telerik grid.

    var grid = $(this).data("kendoGrid")

    Please advise where I am going wrong.
  2. Answer
    Vladimir Iliev
    Vladimir Iliev avatar
    2206 posts

    Posted 16 Oct 2012 Link to this post

    Hi Atanu,

    Please note that the event object contains the Grid client object, and if you need to get the currently selected row data item you should use the dataItem method of the Grid:

    function onChange(e) {
        grid = e.sender;
        var currentDataItem = grid.dataItem(;
    Kind Regards,
    Vladimir Iliev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Luis
    Luis avatar
    2 posts
    Member since:
    Aug 2014

    Posted 17 Feb 2015 in reply to Vladimir Iliev Link to this post

    Hi, I'm getting the following error:
    Object doesn't support property or method 'select' using the code above.
    And I'm getting the same error using the code from the demo's page:
    var selected = $.map(, function (item) {
        return $(item).text();
  4. Vladimir Iliev
    Vladimir Iliev avatar
    2206 posts

    Posted 18 Feb 2015 Link to this post

    Hi Luis,

    I tried to reproduce the described behavior on our side but to no avail - everything is working as expected. Could you please submit new support ticket or forum post and provide runable example where the issue is reproduced? This would help us identify the exact reason for current behavior. 

    Vladimir Iliev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top