Hi,
I have a radgrid set up with detailtables and nestedviewtemplate.
The markup (without all the details...) looks like this :
I would like to have all parent rows, of the row the user left or right-clicks,selected.
In my code-behind i have code in the ItemCommmand event that when a user expands a row e.Item.Selected is set to true.
So that row is selected, but i also would like the parent rows to be selected and all other rows deselected.
We have the Office2007 skin (very nice one by the way!!) and selected rows are displayed in orange. The reason we want the parent rows selected as well is to make it easer for the user to see where he "is" in the hierarchial grid.
Does anybody know what i need to do to make this work? I think i have to set each grid (the grids in the NestedViewTemplate as well) to multiselect. And then catch the left or right mouseclick, loop through each parent control and clear all selected items if the parent is a grid and if it is a griditem the set selected to true?
I have a radgrid set up with detailtables and nestedviewtemplate.
The markup (without all the details...) looks like this :
| <telerik:radgrid ...> |
| <DetailTables> |
| <telerik:GridTableView ...> |
| <DetailTables> |
| <telerik:GridTableView ...> |
| <NestedViewTemplate> |
| <telerik:RadTabStrip ...> |
| </telerik:RadTabStrip> |
| <telerik:RadMultiPage ...> |
| <telerik:RadPageView ...> |
| <telerik:RadGrid ...> |
| <DetailTables> |
| <telerik:GridTableView ...> |
| <DetailTables> |
| <telerik:GridTableView ...> |
| </telerik:GridTableView> |
| </DetailTables> |
| </telerik:GridTableView> |
| </DetailTables> |
| </telerik:RadGrid> |
| </telerik:RadPageView> |
| </telerik:RadMultiPage> |
| <NestedViewTemplate> |
| </telerik:GridTableView |
| </DetailTables> |
| </telerik:GridTableView |
| </DetailTables> |
| </telerik:radgrid> |
I would like to have all parent rows, of the row the user left or right-clicks,selected.
In my code-behind i have code in the ItemCommmand event that when a user expands a row e.Item.Selected is set to true.
So that row is selected, but i also would like the parent rows to be selected and all other rows deselected.
We have the Office2007 skin (very nice one by the way!!) and selected rows are displayed in orange. The reason we want the parent rows selected as well is to make it easer for the user to see where he "is" in the hierarchial grid.
Does anybody know what i need to do to make this work? I think i have to set each grid (the grids in the NestedViewTemplate as well) to multiselect. And then catch the left or right mouseclick, loop through each parent control and clear all selected items if the parent is a grid and if it is a griditem the set selected to true?