Rad Ajax Manager and page.ascx

2 posts, 0 answers
  1. Mateusz
    Mateusz avatar
    14 posts
    Member since:
    Aug 2012

    Posted 06 Feb 2013 Link to this post

    Hi i have registered a src page1.ascx 
    <%@ Register Src="~/App_Controls/AddUser.ascx" TagPrefix="uc" TagName="AddUser" %>
    and put it as an element in tags on my page.ascx.
    <uc:AddUser ID="addUser" runat="server" Visible="false" />
      i use it in RadAjaxManager to be mi AjaxControl.
    <telerik:AjaxSetting AjaxControlID="addUser">
    <UpdatedControls>
    <telerik:AjaxUpdatedControl ControlID="rgUsers" />
    </UpdatedControls>
    </telerik:AjaxSetting>
    I want to update my grid when the button inside that uc:addUser does a method in code behind. Unfortonately the grid is beeing refresh before the control fires that method. Any ideas?
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 08 Feb 2013 Link to this post

    Hello Mateusz,

    Pleas note that it is not a supported scenario to add invisible controls and UserControls directly in the RadAjaxManager settings. You should firstly wrap the UserControl into always visible asp Panel and add this Panel to the RadAjaxManager setting instead.
    Also please handle the needed server event fired from the UserControl and call Rebind() for the RadGrid there.

    I hope this helps.

    Greetings,
    Maria Ilieva
    the Telerik team
    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 their blog feed now.
Back to Top