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

Dynamic hierarchical grid bind with dataset unable to manipulate records

3 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jayaraman
Top achievements
Rank 1
Jayaraman asked on 19 Jun 2013, 10:11 AM
I have created a dynamic hierarchical grid bind with dataset.
I would like to have provision for Add/Update/Delete. I could not do that. even i don't see any demos for the same to my knowledge that is not doable.
Is there a way to do? please redirect me.

Thanks in Advance.

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 24 Jun 2013, 06:17 AM
Hello,

In order to achieve your goal you could check this help topic which describes similar scenario like yours.

Regards,
Andrey
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Jayaraman
Top achievements
Rank 1
answered on 24 Jun 2013, 06:57 AM
Thanks Andrey for your reply. 

I have an dynamic grid which is an Hierarchical one. Based on data and configurations, the number of hierarchy would be decided on the fly. I would like to have manipulation buttons on the parent and all child grid level.

The example one you shown is a one grid without a hierarchy so here it is very simple.
0
Andrey
Telerik team
answered on 26 Jun 2013, 01:30 PM
Hello,

The approach described in the help article could be used no matter how many levels of hierarchy you have. The easiest way to modify the code is to set the Name property of each GridTableView object and then set one and then in the event handler you will check the e.Item.OwnerTableView.Name property and based on its value you will know from which level the event was fired. Having this information you could use a Switch statement and thus reuse your code and in the same time achieve your goal.

I hope I was able to help.

Regards,
Andrey
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Jayaraman
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Jayaraman
Top achievements
Rank 1
Share this question
or