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

Add/edit row to child table in Property Heiarchy Grid

5 Answers 162 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 2
Greg asked on 01 Jun 2009, 07:00 PM
I would like to have a grid like the GridView/HeiarchyPropertyHeirarchy demo example with the ability to edit, delete and insert child records. How can I accomplish this?

5 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 04 Jun 2009, 11:44 AM
Hello Greg,

I'm attaching a sample project for your reference.
You can add new rows at any level just click anywhere in the child grid and press "Insert" button from keyboard.

All the best,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Greg
Top achievements
Rank 2
answered on 04 Jun 2009, 05:23 PM
Using your sample, I can add rows to the parent grid but when I select a row in a child grid the insert key is ignored. I added a row to the parent grid and then tried adding the first row to the child and no matter where I clicked, Insert added a new row to the parent. How do I delete a row? I tried the Delete key - no luck. Can the insert/delete functionality be implemented via mouse in addition to the keyboard? If so, how?
0
Nedyalko Nikolov
Telerik team
answered on 09 Jun 2009, 07:49 PM
Hi Greg,

Unfortunately this is a known issue which it is not so easy and trivial to fix.
Since we plan to introduce some massive improvements to the data engine we will consider this scenario, and we will do our best in order to fix it.

All the best,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Erez
Top achievements
Rank 1
answered on 29 Jun 2009, 06:42 AM
Hello,

I saw that you set the columns of the "master" records through XAML:
<telerik:RadGridView x:Name="radGridView1" AutoGenerateColumns="False" >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn UniqueName="FirstName" />
                <telerik:GridViewDataColumn UniqueName="LastName" />
                <telerik:GridViewDataColumn UniqueName="Age" />
            </telerik:RadGridView.Columns>
</telerik:RadGridView>


Is there a way to also set the columns of the "details" records through XAML ?

Thanks,

Erez


0
Vlad
Telerik team
answered on 01 Jul 2009, 04:09 PM
Hello Erez,

There is a problem with this in our current official version however the issue was fixed and the fix will be part of our upcoming release Q2 2009 (this week).

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Greg
Top achievements
Rank 2
Answers by
Nedyalko Nikolov
Telerik team
Greg
Top achievements
Rank 2
Erez
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or