or
I have an ASP.Net RadioButtonList control with AutoPostBack set to true and a server side handler for the SelectedIndexChanged event.
<asp:RadioButtonList runat="server" ID="btnAcceptReject" RepeatDirection="Horizontal" CssClass="checkboxlist borderless" ValidationGroup="data" AutoPostBack="true" OnSelectedIndexChanged="radioButtonList_SelectedIndexChanged"><asp:ListItem Text="The edition is hereby validated for conformity to standards" Value="0" Selected="True"></asp:ListItem> <asp:ListItem Text="The edition does not meet standards and still has to be reviewed" Value="1"></asp:ListItem></asp:RadioButtonList><telerik:RadAjaxManagerProxy runat="server" ID="RadAjaxManagerPRoxy1"><AjaxSettings><telerik:AjaxSetting AjaxControlID="btnAcceptReject"><UpdatedControls><telerik:AjaxUpdatedControl ControlID="pnlControls" /></UpdatedControls> </telerik:AjaxSetting><br></AjaxSettings>pnlControl is a panel on the page containing controls that will be enabled/disabled depending on which radio button was checked.
the RadAjaxManager never seems to catch the submit event, the above always performs a full postback when one of the radio button of the group is clicked.
An error has occurred because a control with id 'ctl00$ContentPlaceHolder1$pnlStatesInfo$i0$i0$ctl01$rgClassCode$ctl00$ctl02$ctl00$ctl01' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.<telerik:GridBoundColumn DataField="Data.SubCategoryName" DataType="System.String" UniqueName="SubCategoryName" HeaderText="IMDIS Category" ReadOnly="true" ItemStyle-Width="250" HeaderStyle-HorizontalAlign="Center"> <FilterTemplate> <telerik:RadComboBox ID="RC1" runat="server" DataValueField="SubCategoryName" AppendDataBoundItems="true" DataTextField="SubCategoryName" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("SubCategoryName").CurrentFilterValue %>' OnClientSelectedIndexChanged="categoryIndexChanged" DataSourceID="EntityDataSource1" Width="310"> <Items> <telerik:RadComboBoxItem Text="All" /> </Items> </telerik:RadComboBox> <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> <script type="text/javascript"> function categoryIndexChanged(sender, args) { var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>"); tableView.filter("SubCategoryName", args.get_item().get_value(), "EqualTo"); } </script> </telerik:RadScriptBlock> </FilterTemplate> </telerik:GridBoundColumn>protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) { if (!Page.IsPostBack && InitialFilter != null) { RadGrid1.MasterTableView.FilterExpression = "([" + InitialFilter.ColumnName + "])=\"" + InitialFilter.Value + "\") "; GridColumn col = RadGrid1.MasterTableView.GetColumnSafe(InitialFilter.ColumnName); col.CurrentFilterFunction = InitialFilter.Operator; col.CurrentFilterValue = InitialFilter.Value; } RadGrid1.DataSource = DataSource; }public OnLoadFilter InitialFilter { get; set; } public class OnLoadFilter { public string ColumnName { get; set; } public GridKnownFunction Operator { get; set; } public string Value { get; set; } }RadGrid1.MasterTableView.FilterExpression = "([SubCategoryName]=\"Cars\") ";