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

Edit Hierarchical Data

2 Answers 96 Views
GridView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 16 Aug 2013, 02:47 PM
Hi,

I have my gridview setup like this:

<telerik:RadGridView ShowGroupPanel="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="RadGridView1"
                     AutoGenerateColumns="False" >
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="First Name"/>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding LastName}" Header="Last Name"/>
    </telerik:RadGridView.Columns>
    <telerik:RadGridView.ChildTableDefinitions>
        <telerik:GridViewTableDefinition/>
    </telerik:RadGridView.ChildTableDefinitions>
    <telerik:RadGridView.HierarchyChildTemplate>
        <DataTemplate>
            <telerik:RadGridView ItemsSource="{Binding Content}" ShowGroupPanel="False" />
        </DataTemplate>
    </telerik:RadGridView.HierarchyChildTemplate>
</telerik:RadGridView>


Everything displays correctly. However it's not possible to edit the child data. Is there something wrong with my approach or is this a feature limitation?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 16 Aug 2013, 03:31 PM
Hi James,

Unfortunately I was not able to reproduce the issue, based on the provided information. May I ask you to tell me what version of our controls you are using? However, I have prepared a sample project which you can find attached. Would it be possible for you to modify it in order to reproduce the problem and resend it back to me ?


Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
James
Top achievements
Rank 1
answered on 19 Aug 2013, 02:44 PM
Thanks for the example, I worked through it and realised I'd given my code the wrong type of data (I was using a list(Of Integer) for my test). So now I've applied my real data it all works.

I did however notice an error in your example code - it seems you included the wrong North London club ;)

Tags
GridView
Asked by
James
Top achievements
Rank 1
Answers by
Yoan
Telerik team
James
Top achievements
Rank 1
Share this question
or