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

Radgrid template editor and Radwindows

1 Answer 38 Views
Window
This is a migrated thread and some comments may be shown as answers.
Romy
Top achievements
Rank 1
Romy asked on 19 Jul 2013, 01:51 PM

Hello,

I have a radgrid with a form template editor. This editform hosts a lot of controls and I use popup Radwindows to reconfigure data that feed the controls. When the radwindow is closed, I need a mechanism to refresh those individual controls. I do not want to return javascript values from the  Radwindows but I rather would like to refresh  datasource or even better to execute my back-end code. I for sure can’t rebind the grid’s masterTableView  as I will loose the changes were made on other elements of template.

Thank you for your recommendation.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 23 Jul 2013, 01:57 PM
Hi Romy,

Let me summarize what I understand from your scenario:
- you do not want to rebind the grid, but you want to change its datasource
- you do not want to return data from the RadWindow client-side, but you want to work with server-side code alone

The first point would hardly be possible and for the second - I can suggest you use the ContentTemplate of the RadWindow. This will place the controls there on the same page, so you can access the grid as desired in the code-behind. More information on this mode can be found here:
http://demos.telerik.com/aspnet-ajax/window/examples/contenttemplatevsnavigateurl/defaultcs.aspx
You may also find interesting this article on using AJAX with this mode:
http://www.telerik.com/help/aspnet-ajax/radwindow-ajaxifying.html

If you need to use a separate page I can suggest you return the data with JavaScript and assign CSS classes to the controls in your grid edit form. This will let you access them easily with jQuery and put the needed data in them with JavaScript, so you can keep editing the form without any postbacks at all.


Regards,
Marin Bratanov
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
Window
Asked by
Romy
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or