This is a migrated thread and some comments may be shown as answers.

in grid collapse the row when expand another row

2 Answers 320 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dileep
Top achievements
Rank 1
dileep asked on 07 Jun 2012, 06:55 AM
can u please send me a code to colapse the row dynamically when i expand the other row in grid

2 Answers, 1 is accepted

Sort by
0
Basem
Top achievements
Rank 1
answered on 02 Aug 2012, 03:55 PM
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/ 
0
Ed
Top achievements
Rank 1
answered on 14 Jun 2018, 06:04 PM

It works on mine.

Good info.

Tags
Grid
Asked by
dileep
Top achievements
Rank 1
Answers by
Basem
Top achievements
Rank 1
Ed
Top achievements
Rank 1
Share this question
or