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

[Solved] How to get the CurrentCell in a Child GridView?

1 Answer 113 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.
Yolanda
Top achievements
Rank 1
Yolanda asked on 25 Oct 2010, 02:57 PM
Hello, I have a hierarchical gridview defined as this :
<views:PricingRadGridView                                      CurrentCellChanged="radGridViewBaseTarification_CurrentCellChanged">
 
  <views:PricingRadGridView.HierarchyChildTemplate>
    <DataTemplate>
      <telerikGridView:RadGridView >
            [...]
    </DataTemplate>
  </telerikGridView:RadGridView>
 
</views:PricingRadGridView>


In the function radGridViewBaseTarification_CurrentCellChanged I can get the selected cell in the parent gridview thanks to the currentcell property. However when I select a cell in the chid gridview the property currentcell sends me a null value. Why?

So how can I get the selected cell in the child gridview? do I have to subscribe the child grid view to the CurrentCellChanged event?

Thanks for your help.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 26 Oct 2010, 04:13 PM
Hello Yolanda,

You need to subscribe to the child grid event CurrentCellChanged also as the routed strategy of it is of type Direct. Thus, only the source element - the parent or child grid - is capable of invoking the corresponding event.

Sincerely yours,
Maya
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
Tags
GridView
Asked by
Yolanda
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or