Radgrid template editor and Radwindows

2 posts, 0 answers
  1. Romy
    Romy avatar
    1 posts
    Member since:
    Jun 2009

    Posted 19 Jul 2013 Link to this post


    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.

  2. Marin Bratanov
    Marin Bratanov avatar
    3555 posts

    Posted 23 Jul 2013 Link to this post

    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:
    You may also find interesting this article on using AJAX with this mode:

    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.

    Marin Bratanov
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top