user control

2 posts, 0 answers
  1. dino
    dino avatar
    7 posts
    Member since:
    Jul 2010

    Posted 28 Jul 2010 Link to this post

    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!
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 02 Aug 2010 Link to this post

    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
Back to Top