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

Editing in external popup form

2 Answers 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ubaldo
Top achievements
Rank 1
Ubaldo asked on 15 Jul 2011, 05:57 PM
Hi there,
here my problem:
I have a RadGrid with 3 levels hierarchy created using NestedViewTemplate on 2nd and 3rd levels.
When I dblclick a row in 2nd/3rd level, I want to open a popup form to edit the double clicked record.
When I close the popup form, if data has been saved I want (if possible) to refresh only the grid level of the edited row.
I want that the edit form is an independent form, that contains all the logic to edit/insert a record (so that I can reuse it and call it from different RadGrids and pages).
The edit form should accept a querystring value "ID=x" in order to go into edit mode, or a "ParentID=y" in order to go into insert mode, with ParentID being the ID of the "father table".
Let's suppose that in the calling TableView I've got a column called RowID which contains the key of the record to edit.

I've started to work using you demo Window.ReturningValuesFromDialog...
how to inject the querystring value into the call to the popup ?
how to rebind only the level of the grid that contains the edited row ?

Which is the best strategy to achieve such an application scenario ? Is there any sample that I have not found yet that face this challenge ?

Thanks in advance

Ubaldo

2 Answers, 1 is accepted

Sort by
0
Ubaldo
Top achievements
Rank 1
answered on 19 Jul 2011, 08:07 AM
Hello ???
Can anyone answer to this post ?
many thanks
Ubaldo
0
Maria Ilieva
Telerik team
answered on 20 Jul 2011, 03:40 PM
Hi Ubaldo,

Please refer to the following online examples which shows the usage of UserControl edit form and in which the row double clicked event is handled for opening the edit form:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx
In this case the UserControl edit form could be used in different RadGrid controls into different pages.

Please note that it is not possible to rebind only particular level of the RadGrid after edit operation, but the RadGrid should be entirely rebind.

I hope this helps.

Regards,
Maria Ilieva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
Ubaldo
Top achievements
Rank 1
Answers by
Ubaldo
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or