Radgrid ExpandAllGroups method not working correctly

3 posts, 1 answers
  1. Shiva
    Shiva avatar
    61 posts
    Member since:
    Oct 2010

    Posted 29 Mar 2012 Link to this post

    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. Answer
    Vera
    Admin
    Vera avatar
    268 posts

    Posted 30 Mar 2012 Link to this post

    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 >>
  3. Shiva
    Shiva avatar
    61 posts
    Member since:
    Oct 2010

    Posted 30 Mar 2012 Link to this post

    Hey Vera,

    That did the trick. Thank you so very much.

    Cheers,
    Shiva
Back to Top