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

[Solved] Hitting delete in a RadGridView inside a RowDetails template causes parent grid to delete

1 Answer 68 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.
Matt Greer
Top achievements
Rank 1
Matt Greer asked on 22 Sep 2010, 10:31 PM
I have a RadGridView with a RowDetailsTemplate which contains a child RadGridView. If I highlight a row in this child RadGridView and hit the delete key, instead of deleting from the child RadGridView, the entry in the parent RadGridView is deleted.

The only special thing I am doing is on the parent RadGridView, I am hooking up to the Deleting event, and setting the GridViewDeletingEventArgs.Cancel property to true if for whatever reason that row shouldn't be deleted. Everything else is using the built in support for deleting rows in a grid.

Is it possible to have the delete apply to the child RadGridView in this case?

I am using Telerik Silverlight controls version 2010.2.812.1040
Silverlight 4 (4.0.50826.0)
Windows 7 professional 64 bit
IE 8 (8.0.7600.16385)

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 23 Sep 2010, 07:57 AM
Hi Matt Greer,

Basically, there should be no problem to delete from the child grid. However, in order to provide you with any suggestion about overcoming the issue you encountered, I would need a bit more details about the exact handling the Deleting event of the parent grid. Any other relevant information would be helpful.
 

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
Matt Greer
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or