in grid collapse the row when expand another row

2 posts, 0 answers
  1. dileep
    dileep avatar
    1 posts
    Member since:
    May 2012

    Posted 07 Jun 2012 Link to this post

    can u please send me a code to colapse the row dynamically when i expand the other row in grid

  2. Basem
    Basem avatar
    27 posts
    Member since:
    Dec 2010

    Posted 02 Aug 2012 Link to this post

    You can add the functionality in the detailExpand event like this:

    detailExpand: function(e) {
        this.collapseRow(this.tbody.find(' > tr.k-master-row').not(e.masterRow));
    }

    Here is a working example for you:
    http://jsfiddle.net/rnqZu/2/ 

Back to Top