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

Radgrid ExpandAllGroups method not working correctly

2 Answers 96 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shiva
Top achievements
Rank 1
Shiva asked on 29 Mar 2012, 05:22 PM
Dear Community,

We have a requirement to group silverlight radgrid by a column when page loads and by default all the rows of the grid must be expanded.

Below is the code segment I'm using:

//Auto-grouping of grid by Account column
                        GroupDescriptor descriptor = new GroupDescriptor();
                        descriptor.Member = "AccountName";
                        AccountRulesGrid.GroupDescriptors.Clear();
                        AccountRulesGrid.GroupDescriptors.Add(descriptor);
                        AccountRulesGrid.ExpandAllGroups();

The problem is that ExpandAllGroups isn't working as expected. At times grid rows comes collapsed and at times expanded. It is not consistent. I need rows to be expanded always.

Please help.

Regards,
Shiva

2 Answers, 1 is accepted

Sort by
0
Accepted
Vera
Telerik team
answered on 30 Mar 2012, 11:41 AM
Hi Shiva,

 
You only need to set RadGridView AutoExpandGroups property to True.


Kind regards,
Vera
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Shiva
Top achievements
Rank 1
answered on 30 Mar 2012, 11:53 AM
Hey Vera,

That did the trick. Thank you so very much.

Cheers,
Shiva
Tags
GridView
Asked by
Shiva
Top achievements
Rank 1
Answers by
Vera
Telerik team
Shiva
Top achievements
Rank 1
Share this question
or