How to find the grid in which the event occured

3 posts, 0 answers
  1. Vijay
    Vijay avatar
    19 posts
    Member since:
    May 2011

    Posted 29 Oct 2013 Link to this post

        I have multiple grids on a page which share the same change function. Is there a way to find which grid has triggered the event. I need to get the id of that grid and I am using plain HTML and jquery to implement all the grids.
  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2121 posts

    Posted 29 Oct 2013 Link to this post

    Hello Vijay,

    The context of each event is set to the Grid that triggered it and could be accessed via this.
    function myEvent(e){
        var grid = this;
        var id = this.wrapper.attr("id");


    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. nikobellic
    nikobellic avatar
    46 posts
    Member since:
    Feb 2013

    Posted 29 Oct 2013 Link to this post

    Hi Vijay,

    Here is a small sample that accomplishes this.

    Hope it helps.
Back to Top