Brian Graves
Top achievements
Rank 1
Brian Graves
asked on 26 May 2010, 12:28 AM
How can I programmatically create a child grid underneath a parent grid row (using the same column header)? I want to do this instead of grouping for 2 reasons:
1) the aggregate summary information doesn't align with the column headers
2) I can't sort the group rows according to the aggregate summary information
I'm assuming that I need to handle clicking a "+" or "-" image on a grid row to programmatically create the child grid underneath. I know how to create a GridViewHyperlinkColumn to handle the click but I'm not sure how to create a child grid view underneath the parent grid row I'm on. Is there a sample that I could look at to see how to do this?
1) the aggregate summary information doesn't align with the column headers
2) I can't sort the group rows according to the aggregate summary information
I'm assuming that I need to handle clicking a "+" or "-" image on a grid row to programmatically create the child grid underneath. I know how to create a GridViewHyperlinkColumn to handle the click but I'm not sure how to create a child grid view underneath the parent grid row I'm on. Is there a sample that I could look at to see how to do this?
7 Answers, 1 is accepted
0
Hi Brian Graves,
Kind regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Maybe your scenario requires a TreeListView control rather than a GridView control. Could you please take a look at this TreeListView demo.
Kind regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Brian Graves
Top achievements
Rank 1
answered on 26 May 2010, 07:02 PM
The TreeListView sample you have provided doesn't allow column sorting/filtering. More importantly, it doesn't allow grouping like the RadGridView does. Is there anything else I could use to provide this?
0
Hi Brian,
We are preparing a new version of the RadTreeListView will be based on RadGridView. It will allow sorting and filtering. We are still not sure whether it will support grouping in its first release. You can check out this short movie illustrating the control in action.
Can you share more details about how you would you envision the grouping in a tree grid presentation? By which items in the hierarchy you want to group - only at the root level, only the leaves or all items?
Kind regards,
Stefan Dobrev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
We are preparing a new version of the RadTreeListView will be based on RadGridView. It will allow sorting and filtering. We are still not sure whether it will support grouping in its first release. You can check out this short movie illustrating the control in action.
Can you share more details about how you would you envision the grouping in a tree grid presentation? By which items in the hierarchy you want to group - only at the root level, only the leaves or all items?
Kind regards,
Stefan Dobrev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Brian Graves
Top achievements
Rank 1
answered on 02 Jun 2010, 02:19 AM
Since it won't support grouping, it looks like I won't be able to go with the RadTreeListView. Even if it did, the grouping probably wouldn't work the way I need it to. I need to dynamically create child grid views when +/- is clicked on each row. The following demo gave me some hope:
http://demos.telerik.com/silverlight/#GridView/FirstLook
However, I don't want to bind the child grids right away. I want the user to be able to set up some parameters in one of the child tabs and then have child grid tab (next to it) displayed after they press a button. How can I achieve this programatically (not hard-coded xaml)?
http://demos.telerik.com/silverlight/#GridView/FirstLook
However, I don't want to bind the child grids right away. I want the user to be able to set up some parameters in one of the child tabs and then have child grid tab (next to it) displayed after they press a button. How can I achieve this programatically (not hard-coded xaml)?
0
Hi,
You can define desired template with your logic similar to this demo. This template can be completely separate user control.
Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
You can define desired template with your logic similar to this demo. This template can be completely separate user control.
Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Brian Graves
Top achievements
Rank 1
answered on 02 Jun 2010, 06:12 PM
But I can't create a template in the xaml since I won't know what columns are in my grid...I absolutely need to do this dynamically. Again, I want the user to be able to set up some parameters in one of the child tabs and then have child grid tab (next to it) displayed after they press a button. How can I achieve this programatically (not hard-coded xaml)?
0
Hello,
You do not need to define the grid in this template if you do not want. You can place a button and in the button click event create desired grid and add this grid to an content place holder for example (in the same template).
Best wishes,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
You do not need to define the grid in this template if you do not want. You can place a button and in the button click event create desired grid and add this grid to an content place holder for example (in the same template).
Best wishes,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.