RadAjax - Update a User Control from the Page

2 posts, 0 answers
  1. Tony
    Tony avatar
    22 posts
    Member since:
    Jun 2005

    Posted 22 Mar 2011 Link to this post

    Hi, I am struggling with what I assumed would be a simple task.  Essentially, in its simplest form it boils down to this...

    1. We have a master page with a scriptmanager.
    2. Using that master page we have a web form with a button on it.
    3. Within the web form is a user control that accepts a public property.  When we load the page, we pass the user control a default value for its public property.
    4. When we click the button it passes the user control a new value for its public property and updates the user control (using AJAX).

    Help!?
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 25 Mar 2011 Link to this post

    Hello Tony,

    In your case I would suggest you to add RadAjaxManager on the MasterPage and get reference to this AjaxManager in the web form. There in code behind you could use this reference to programmatically add setting in which the Button updates the UserControl.
    I would suggest you to review the following online resources which elaborate on this matter:

    http://www.telerik.com/help/aspnet-ajax/ajax-masterpage.html
    http://www.telerik.com/help/aspnet-ajax/ajax-user-controls.html
    http://www.telerik.com/help/aspnet-ajax/ajax-masterpage-update-everywhere.html
    http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxsettings-programmatically.html

    I hope this helps.


    Best wishes,
    Maria Ilieva
    the Telerik team
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top