How this done with RadAjaxpanel (Updatepanel.update())

2 posts, 1 answers
  1. Shafees
    Shafees avatar
    14 posts
    Member since:
    Sep 2010

    Posted 23 Sep 2010 Link to this post

    I had not found a alternative for asp:updatepanel.update() in RadAjaxPanel
    How the senario is possible with RadAjaxpanel

    Bellow is a code sample

    <
    asp:UpdatePanel ID="updatePanelSearch" runat="server" UpdateMode="Conditional">
         <ContentTemplate>
      
            <asp:Label ID="Label1" runat="server" Text="Search"></asp:Label>
            <telerik:RadTextBox ID="radtxtSearch" runat="server">
            </telerik:RadTextBox>
            <asp:ImageButton ID="imgbtnSearch" runat="server" ImageUrl="~/Images/Search.png" OnClick="imgbtnSearch_Click" />
      
         </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="updatePanelGrid" runat="server" UpdateMode="Conditional">
         <ContentTemplate>
      
               <asp:PlaceHolder ID="phGrid" runat="server"></asp:PlaceHolder>
      
          </ContentTemplate>
    </asp:UpdatePanel>
    protected void imgbtnSearch_Click(object sender, ImageClickEventArgs e)
    {
        updatePanelGrid.Update();
        /*Update Grid*/
        ..........
        /**/
    }
  2. Answer
    Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 28 Sep 2010 Link to this post

    Hi Shafees,

    RadAjax does not provided a method for explicit update as the ASP:UpdatePanel. However you can use the RadAjaxManager control to ajaixy your page as below:

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Panel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1" />
                    <telerik:AjaxUpdatedControl ControlID="phGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="phGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="phGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <asp:Panel ID="Panel" runat="server"
        <asp:Label ID="Label1" runat="server" Text="Search"></asp:Label
        <telerik:RadTextBox ID="radtxtSearch" runat="server"
        </telerik:RadTextBox
        <asp:ImageButton ID="imgbtnSearch" runat="server" 
            ImageUrl="~/Images/Search.png" OnClick="imgbtnSearch_Click" /> 
    </asp:Panel>
    <asp:Panel ID="phGrid" runat="server">
    </asp:Panel>


    Regards,
    Iana
    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