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

RadAjaxManagerProxy refreshes the whole page when a dropdownlist is added

1 Answer 31 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Rajiv Bannur
Top achievements
Rank 1
Rajiv Bannur asked on 04 Feb 2009, 11:18 PM
Hi, I have a strange behavior when I'm using the Dropdownlist using RadAjaxManagerProxy. The whole page refreshes instead of just the desired  controls.Please see the following snippet of code and suggest what am I doing wrong.

 

 

 

<telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">

 

 

 

 

</telerik:RadScriptManager>

 

 

 

 

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">

 

 

 

 

<AjaxSettings>

 

 

 

 

<telerik:AjaxSetting AjaxControlID="list1">

 

 

 

 

<UpdatedControls>

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="Label1" />

 

 

 

 

</UpdatedControls>

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

</AjaxSettings>

 

 

 

 

</telerik:RadAjaxManagerProxy>

 

 

 

 

<asp:Panel ID="Panel1" runat="server">

 

 

 

 

<asp:DropDownList ID="list1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="list1_SelectedIndexChanged">

 

 

 

 

<asp:ListItem Text="ENG" Value="0"></asp:ListItem>

 

 

 

 

<asp:ListItem Text="AUS" Value="1"></asp:ListItem>

 

 

 

 

<asp:ListItem Text="SA" Value="2"></asp:ListItem>

 

 

 

 

</asp:DropDownList>

 

 

 

 

<asp:Label ID="Label1" runat="server" Text="CurrentDate"></asp:Label>

 

 

 

 

</asp:Panel>

 

 

 


On the Code behind:

 

 

public partial class _Default : System.Web.UI.Page

 

 

 

{

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

if (Page.IsPostBack)

 

{

GetLatestDate();

}

}

 

public void GetLatestDate()

 

{

Label1.Text =

DateTime.Now.ToString();

 

}

 

 

 

protected void list1_SelectedIndexChanged(object sender, EventArgs e)

 

{

GetLatestDate();

}
}

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Feb 2009, 06:44 AM
Hi Rajiv,

I found another forum discussing the similar issue with RadAjaxManagerProxy,
RadAjaxManagerProxy refreshes entire page like postback ,
Have a look at it and let me know whether it helps.

-Shinu.
Tags
Ajax
Asked by
Rajiv Bannur
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or