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

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

1 Answer 116 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Shafees
Top achievements
Rank 2
Shafees asked on 23 Sep 2010, 11:57 AM
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*/
    ..........
    /**/
}

1 Answer, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 28 Sep 2010, 10:57 AM
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
Tags
Ajax
Asked by
Shafees
Top achievements
Rank 2
Answers by
Iana Tsolova
Telerik team
Share this question
or