This question is locked. New answers and comments are not allowed.
Hi,
I'm using the latest release of telerik's silverlight controls.
In my usage scenario, I have a RadGridView (parentGrid) which contains a Hierarquical RadGridView (childGrid) for each of its records, which on its turn also has subSubGrids ad infinitum. This is basically a SelfReference scenario.
I also have a set of buttons which change depending on the selected record. In theory child rows will have different buttons available than parent rows.
When I select a child record, I noticed that three events are fired in the following order:
1. parentGrid SelectionChanged
AddedRecords = childRow
2. childGrid SelectionChanged
AddedRecords = childRow
3. parentGrid SelectionChanged
AddedRecords = parentRow
RemovedRecords = childRow
Questions:
A. Why is the last event being fired? Because of this last event, I'm not able to know that the child row was selected and consequently I'm not able to show the correct set of buttons for the child row (rather I will show buttons for the parent row).
B. Is there a way to disable the parent row automatic selection when clicking a child row?
Another situation I've come across is the following:
+ ParentRowA
- ChildRowA01
+ ParentRowB
- ChildRowB01
- ChildRowB02
1. Select ChildRowA01 from ParentRowA. Result: Both ChildRowA01 and ParentRowA are selected.
2. Select ParentRowB. Result: ParentRowA is unselected but ChildRowA01 is NOT unselected. Is there any workarround for this?
Many thanks in advance.
Bruno
I'm using the latest release of telerik's silverlight controls.
In my usage scenario, I have a RadGridView (parentGrid) which contains a Hierarquical RadGridView (childGrid) for each of its records, which on its turn also has subSubGrids ad infinitum. This is basically a SelfReference scenario.
I also have a set of buttons which change depending on the selected record. In theory child rows will have different buttons available than parent rows.
When I select a child record, I noticed that three events are fired in the following order:
1. parentGrid SelectionChanged
AddedRecords = childRow
2. childGrid SelectionChanged
AddedRecords = childRow
3. parentGrid SelectionChanged
AddedRecords = parentRow
RemovedRecords = childRow
Questions:
A. Why is the last event being fired? Because of this last event, I'm not able to know that the child row was selected and consequently I'm not able to show the correct set of buttons for the child row (rather I will show buttons for the parent row).
B. Is there a way to disable the parent row automatic selection when clicking a child row?
Another situation I've come across is the following:
+ ParentRowA
- ChildRowA01
+ ParentRowB
- ChildRowB01
- ChildRowB02
1. Select ChildRowA01 from ParentRowA. Result: Both ChildRowA01 and ParentRowA are selected.
2. Select ParentRowB. Result: ParentRowA is unselected but ChildRowA01 is NOT unselected. Is there any workarround for this?
Many thanks in advance.
Bruno