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

[Solved] GroupsDefaultExpanded

4 Answers 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 19 Mar 2008, 03:15 PM
With above property I can switch between opened and closed groups on data bind. My problem is that I cannot open or close more than one group. If property is true only one group can be expanded. If property is false only one group can be collapsed. Is there an option to open/close as many groups as I want?

4 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 24 Mar 2008, 07:56 AM
Hi Markus,

This not the expected behavior.  You can check this online example, this behavior is not observed. Can you please provide more details about your specific implementation?


All the best,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Markus
Top achievements
Rank 1
answered on 25 Mar 2008, 01:53 PM
I found the line which causes the problem.

In "ItemCommand" event I use "e.Item.OwnerTableView.Rebind()". This line is suggested by you and you suggested it becasue I use GridButtonColumns with "Type=ImageButton" and I remove buttons for some rows. Without the line this was not working. So how can I get this work with this line of code?
0
Accepted
Ves
Telerik team
answered on 28 Mar 2008, 02:41 PM
Hi Markus,

Please, check this code library. It shows how to persist the groups expanded/collapsed state on rebind:

http://www.telerik.com/community/code-library/submission/b311D-bcmcgm.aspx

Best regards,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Markus
Top achievements
Rank 1
answered on 28 Mar 2008, 02:52 PM
I already get it work, but as desript in earlier reply I had a problem. But this behaviour is no more avaialble so every thing is OK now. Thanks for help!
Tags
Grid
Asked by
Markus
Top achievements
Rank 1
Answers by
Ves
Telerik team
Markus
Top achievements
Rank 1
Share this question
or