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

How to Expand everything that is expandable

2 Answers 102 Views
GridView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 02 Aug 2018, 03:13 PM

I have been struggling to get my gridview to expand everything by default

this just throws an error but seems like it is what I want just not sure how to implement it. 

rgvContracts.MasterTemplate.Templates[0].ExpandAll();

 

rgvContracts is the name of my RadGridView.

 

 

2 Answers, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 02 Aug 2018, 03:17 PM

it should of just been this

rgvContracts.MasterTemplate.ExpandAll();

0
Dimitar
Telerik team
answered on 06 Aug 2018, 07:16 AM
Hello James,

The screenshot shows that you are using grouping. You can use the AutoExpandGroups property for this:
radGridView1.AutoExpandGroups = true;

I hope this will be useful.  

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
James
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or