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

Expand on Programatically Created Grid

2 Answers 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 17 Aug 2011, 02:39 PM
  Hello, I have enabled grouping on my programatically (dynamic) created RadGrid.  I am persisting the group expressions through cookies and all it working well.  By default, all the groups are expanded.  When I collapse a set of rows they collapse just fine.  However, when I try to expand those same rows nothing happens.  The page appears to be doing a post-back, but not change is made on the screen.  No error, no message at all. 
  I'm guessing that the code is executing a toggle operation and believes (due to it's dynamic nature) that I clicked on an expanded node that needs to be collapsed.  And thus it is doing exactly what it is supposed to.  Is there a way to have the expand/collapse done on the client side so that a post-back does not have to occur?  Or does the fact that the item collapsed needs to be persisted in some manner.  Any direction in either path would be appreciated.

2 Answers, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 22 Aug 2011, 03:18 AM
Hi Alex,

If you want the groups to expanded/collapsed client-side, you can set the GroupLoadMode to Client. But this can lead to change in the logic for persisting the expanded, collapsed items.
However, can you specify how is the grid bound, and if possible to share a stripped version of your code, so we try finding what went wrong there?

Best wishes,
Iana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Alex
Top achievements
Rank 1
answered on 22 Aug 2011, 04:45 PM
Changed the setting and it worked great!
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Alex
Top achievements
Rank 1
Share this question
or