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

user control

1 Answer 18 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
dino
Top achievements
Rank 1
dino asked on 29 Jul 2010, 12:28 AM
I have custom user control that contains a radgrid.
I have placed the user control inside page1.aspx.
I want the radgrid to show the loading effect when it changed to insert mode or edit mode.
I would do it like that:

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                <telerik:AjaxUpdatedControl ControlID="RadInputManager1" />
                <telerik:AjaxUpdatedControl ControlID="ReportBox1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
  
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Outlook" />

The problem is that i cannot have access to the radgrid inside the user control from page1.aspx, plus there is only one radajaxmanager allowed per page so i cannot include one in the user control.

Does anyone knows if there is a way to resolve this?
Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 02 Aug 2010, 03:57 PM
Hi dino,

I would suggest you to get reference of the RadAjaxMnager from the content page in the UserControl and add the Ajax settings dynamically.. Please refer to the following help topics which elaborate on similar to your scenarios:
http://www.telerik.com/help/aspnet-ajax/ajxusercontrols.html

http://www.telerik.com/help/aspnet-ajax/ajxaddajaxsettingsprogrammatically.html
http://www.telerik.com/help/aspnet-ajax/ajxmasterpageupdateeverywhere.html

Best wishes,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
dino
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or