Suresh Kannan
Top achievements
Rank 1
Suresh Kannan
asked on 18 Nov 2009, 12:53 PM
Hi,
I m using RadCombo, when "OnSelectedIndexChanged" the entire page will be reloaded..i want to set "supress postback" property to this control like asp.net. I used ASP.net "Updatepanel" for entire page but Rad not taking the place..I hv problem in Rad control postback only, how can i control it.
Any suggestion Plz..
Thanks & Regards,
Suresh Kannan P
I m using RadCombo, when "OnSelectedIndexChanged" the entire page will be reloaded..i want to set "supress postback" property to this control like asp.net. I used ASP.net "Updatepanel" for entire page but Rad not taking the place..I hv problem in Rad control postback only, how can i control it.
Any suggestion Plz..
Thanks & Regards,
Suresh Kannan P
4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 18 Nov 2009, 01:07 PM
Hai Suresh,
Have you tried RadAjaxManager?
ASPX:
-Shinu.
Have you tried RadAjaxManager?
ASPX:
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadComboBox3"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadComboBox3" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadComboBox ID="RadComboBox3" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RadComboBox3_SelectedIndexChanged"> |
| <Items> |
| . . . |
| </Items> |
| </telerik:RadComboBox> |
-Shinu.
0
Suresh Kannan
Top achievements
Rank 1
answered on 18 Nov 2009, 01:35 PM
Hi Shinu,
Thanks for reply, but it's not work out because i m using RadCombo with checkbox for multiple selection. I need to do the postback when i click the chekbox in the RadCombo.
I hav set checkbox "Autopostback=true" in RadCombo ItemTemplate..
Suggestion Plz..
Thanks for reply, but it's not work out because i m using RadCombo with checkbox for multiple selection. I need to do the postback when i click the chekbox in the RadCombo.
I hav set checkbox "Autopostback=true" in RadCombo ItemTemplate..
Suggestion Plz..
0
Suresh Kannan
Top achievements
Rank 1
answered on 19 Nov 2009, 05:54 AM
Can any telerik people suggest my issue Plz.......it's urgent
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title>Untitled Page</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="ScriptManager1" runat="server" /> |
| <div> |
| <asp:UpdatePanel ID="PersonDetailPanel" runat="server" UpdateMode="Conditional"> |
| <ContentTemplate> |
| <!-- My Sample Code: (Ajax Not working for PersonNameCombo, Entire page is reloaded) --> |
| <telerik:radcombobox id="PersonNameCombo" runat="server" width="120" allowcustomtext="true" |
| highlighttemplateditems="true" text="Filter by Color" enabletextselection="false" |
| forecolor="Gray" onselectedindexchanged="PersonNameCombo_SelectedIndexChanged"> |
| <HeaderTemplate> |
| <asp:HyperLink ID="lnkClearRdComboColorFilter" runat="server" Text="Clear All" onClick="" CssClass="LinkText"></asp:HyperLink> |
| </HeaderTemplate> |
| <ItemTemplate> |
| <asp:CheckBox runat="server" ID="CheckBoxColor" AutoPostBack="true" onclick="" Text='<%# DataBinder.Eval(Container, "Text") %>' /> |
| </ItemTemplate> |
| </telerik:radcombobox> |
| <!--Sample code from Telerik Reference: (Ajax working for PersonNameCombo1, Entire page is NOT reloaded) --> |
| <telerik:RadComboBox |
| ID="PersonNameCombo1" |
| runat="server" |
| EnableLoadOnDemand="True" |
| OnItemsRequested="PersonNameCombo_ItemsRequested" |
| OnSelectedIndexChanged="PersonNameCombo_SelectedIndexChanged" |
| AutoPostBack="true" |
| Width="350px"> |
| <Items> |
| <telerik:RadComboBoxItem runat="server" Text="text 1" /> |
| <telerik:RadComboBoxItem runat="server" Text="text 2" /> |
| </Items> |
| </telerik:RadComboBox> |
| <asp:Label ID="AgeLabel" runat="server" /><br /> |
| <asp:Label ID="AddressLabel" runat="server" /> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| </div> |
| </form> |
| </body> |
| </html> |
| //CS Code: |
| protected |
| void Page_Load(object sender, EventArgs e) |
| { |
| if (!IsPostBack) |
| { |
| PersonNameCombo.Items.Add(new Telerik.Web.UI.RadComboBoxItem("a","a")); |
| PersonNameCombo.Items.Add(new Telerik.Web.UI.RadComboBoxItem("b", "b")); |
| PersonNameCombo.DataBind(); |
| } |
| } |
| protected void PersonNameCombo_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) |
| { |
| } |
| protected void PersonNameCombo1_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) |
| { |
| this.AddressLabel.Text = e.Text; |
| } |
0
Hi Suresh Kannan,
You can achieve your goal by using RadAjaxManager's client-side API to initiate an AJAX postback manually in the onclick event of the CheckBox.
Please see this help article showing how to use the RAM in this context.
Sincerely yours,
Simon
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Sincerely yours,
Simon
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.