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

Re: GroupsDefaultExpanded after sorting/reorder

2 Answers 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 06 Jun 2012, 09:52 AM
Since I always get a server error when I try to reply to my thread
http://www.telerik.com/community/forums/aspnet-ajax/grid/groupsdefaultexpanded-after-sorting-reorder.aspx
I post my post herein, perhaps an admin could merge the threads.

So here is my reply:
Thanks for that sample. But somehow the group expands only after two clicks on the expand icon (both clicks do a postback). This occurs only after the page was rendered the first time, after that it works normally. 
What could that be?   

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Jun 2012, 10:04 AM
Hi,

Unfortunately i couldn't replicate the issue. Th groups expands with one click at my end. Please provide the code for further assistance.

Thanks,
Shinu.
0
JP
Top achievements
Rank 1
answered on 06 Jun 2012, 11:30 AM
It seems the problem occured because I set "grid.MasterTableView.GroupsDefaultExpanded" only once when the Grid was initialized and not in every postback. I set it now in CreateChildControls and it works.
Tags
Grid
Asked by
JP
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
JP
Top achievements
Rank 1
Share this question
or