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

How to expand spesific hierarchy ?

2 Answers 10 Views
GridView
This is a migrated thread and some comments may be shown as answers.
andi
Top achievements
Rank 1
andi asked on 09 Nov 2018, 04:30 AM

I have three level of hierarchy.

1. Radgridview1.--.> add template1

2. template1.--> add template2

3. template2.

the problem is i want to expand component radgridview1 only which contain row from template1.

if i using code is like : RadGridView1.MasterTemplate.ExpandAll() all hierarchy include template2 will be expanded. if code is like : RadGridView1.MasterTemplate.Templates(0).ExpandAll() then nothing rows expanded. So how to expand Radgridview1 which contain template1 without expand template2 that own by template1.

thanks before

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 09 Nov 2018, 09:17 AM
Hello Andi,

You can manually expand the rows. For example:
foreach (var item in radGridView1.Rows)
{
    item.IsExpanded = 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.
0
andi
Top achievements
Rank 1
answered on 09 Nov 2018, 09:24 AM

Hi Dimitar,

It works very well thank you.

Tags
GridView
Asked by
andi
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
andi
Top achievements
Rank 1
Share this question
or