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

Rad Ajax Manager and page.ascx

1 Answer 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mateusz
Top achievements
Rank 1
Mateusz asked on 06 Feb 2013, 12:48 PM
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?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 08 Feb 2013, 01:23 PM
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.
Tags
General Discussions
Asked by
Mateusz
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or