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

Expand all Button

6 Answers 191 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexandru Stefan
Top achievements
Rank 1
Alexandru Stefan asked on 11 Aug 2015, 09:54 AM

Hi all,

 

I'm trying to add an expand/collapse all button in my kendo ui gridview but i couldn't find a way to do it. I've found the method to do it: 

this.expandRow(this.tbody.find("tr.k-master-row"));

But I don't know how to add a button in the highlighted area in the attached photo.

Can anyone help me with this?

 

Thank you in advance!

6 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 11 Aug 2015, 12:20 PM
Hello Alexandru,

You can achieve this requirement using the following approach:
http://dojo.telerik.com/IHEGo/17

Hope this helps. Please give it a try and let me know if it works for you.

Regards,
Eyup
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Alexandru Stefan
Top achievements
Rank 1
answered on 11 Aug 2015, 12:25 PM

Hi Eyup,

It sure looks like what I need. I will give it a try and come back with conclusions/questions.

Thank you a lot!

0
Eyup
Telerik team
answered on 11 Aug 2015, 01:01 PM
Hello Alexandru,

Please take your time to examine the sample and let us know if new questions arise.

Regards,
Eyup
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Alexandru Stefan
Top achievements
Rank 1
answered on 11 Aug 2015, 01:56 PM

Hi Eyup,

Do you know why your code it doesn't put the link in the right cell? (see attached image)

I applied style and checked everything if it is the same.

Thank you, 

Alexandru

0
Alexandru Stefan
Top achievements
Rank 1
answered on 11 Aug 2015, 02:58 PM
Fixed, it was just a mistake of mine. Thank you for your help!
0
Eyup
Telerik team
answered on 13 Aug 2015, 06:10 AM
Hello Alexandru,

I'm glad the suggested solution has proven helpful.
For collapsing all records, you can use the collapseRow() method in a similar way.

Regards,
Eyup
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Alexandru Stefan
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Alexandru Stefan
Top achievements
Rank 1
Share this question
or