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

[Solved] Keeping first row visible when collapsing group

3 Answers 138 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sander
Top achievements
Rank 1
Sander asked on 01 Aug 2011, 12:43 PM
I have a grouped Radgridview. It is grouped with a groupdescriptor (in xaml), the user cannot change the grouping. When the user collapses a group I want the first row to stay visible. Is this possible? I guess I would have to do this in code?

I tried making my own collapse button and get the GridViewGroupRow that the button is in, but I dont know where to go from there. How can I get the GridViewRows belonging to a group?

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 01 Aug 2011, 01:08 PM
Hi Sander,

 
I am not quite sure what do you mean by that you mean by "the first row to stay visible". May you please elaborate a bit more about your exact settings? If you want to incorporate your own button within GridViewGroupRow you may do this through predefining the template of this element with its corresponding logic. Another possibility is to define this button within the GroupHeaderTemplate either at a RadGridView level or at a column level. Regarding your second question I believe that the following forum thread would be useful on that matter. 


All the best,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Sander
Top achievements
Rank 1
answered on 01 Aug 2011, 01:40 PM
I have attached a picture to show what I mean. When a group is collapsed the first row inside that group should still be visible, we use it as a sort of header row.
0
Vanya Pavlova
Telerik team
answered on 01 Aug 2011, 01:49 PM
Hi Sander,

 

With the current implementatin of RadGridView this cannot not achieved, because there is no straightforward way to implement such a behavior. You may do this for the GridViewGroupFooterRow, but not for the first item as required.  


Best wishes,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
GridView
Asked by
Sander
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Sander
Top achievements
Rank 1
Share this question
or