I am using RadComboBoxes in ListView template. I have total 3 comboboxes. Out of 3, 2 comboboxes are firing server side events but first combo box is not firing the events. It was working fine before, suddenly it stopped firing events.
I am struggling a lot to find what went wrong. Please help me assp.
3 Answers, 1 is accepted
Have you set the AutoPostBack property of RadComboBox to True?
-Shinu.
Below is the source code for the reference. Highlighted drop down is not firing events.
<tr>
<td align="left" class="formlabel9" >
Category
<span class="contentwarninglabel">*</span>
<asp:RequiredFieldValidator ID="CategoryValidator" runat="server"
ControlToValidate="rdComboCategory" Visible="true" Display="None" ErrorMessage="Category is mandatory!">
</asp:RequiredFieldValidator>
<ajaxToolkit:ValidatorCalloutExtender ID="CategoryCalOutExtender" WarningIconImageUrl ="~/Images/icon_oops.gif" CssClass="customCalloutStyle" HighlightCssClass="customCalloutStyle"
runat="server" TargetControlID="CategoryValidator" >
</ajaxToolkit:ValidatorCalloutExtender>
</td>
<td class="formcontrol9" align="left" >
<telerik:RadComboBox ID="rdComboCategory" runat="server" Width="124px" CssClass="formlabel2controls" AutoPostBack="True" CausesValidation="false"
EmptyMessage="Select a Category" AllowCustomText="true"
HighlightTemplatedItems="true"
MarkFirstMatch="true" DataTextField="CategoryID" DataValueField="CategoryName" OnSelectedIndexChanged="rdComboCategory_OnSelectedIndexChanged" >
</telerik:RadComboBox>
<asp:LinkButton runat="server" CssClass="contentlinks" ID="AddCategory" >New</asp:LinkButton>
<div id="pnlModalPanel1" style="display: none">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<div>
<uc1:Category ID="ucAddPopup" runat="server" />
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<ajaxToolkit:ModalPopupExtender TargetControlID="AddCategory" PopupControlID="pnlModalPanel1"
BackgroundCssClass="modalBackground" runat="server" ID="mdlpopupAddevent">
</ajaxToolkit:ModalPopupExtender>
</td>
<td align="left" class="formlabel9">
Document
<br />Type
<span class="contentwarninglabel">*</span>
<asp:RequiredFieldValidator ID="DocTypeValidator" runat="server"
ControlToValidate="rdComboSubCategory" Visible="true" Display="None" ErrorMessage="Document Type is mandatory!">
</asp:RequiredFieldValidator>
<ajaxToolkit:ValidatorCalloutExtender ID="DocumentTypeValidatorCallout"
runat="server" TargetControlID="DocTypeValidator" WarningIconImageUrl ="~/Images/icon_oops.gif" Width="120px" CssClass="customCalloutStyle" HighlightCssClass="customCalloutStyle" >
</ajaxToolkit:ValidatorCalloutExtender>
</td>
<td class="formcontrol9" align="left" >
<telerik:RadComboBox ID="rdComboSubCategory" runat="server" CssClass="formlabel2controls" CausesValidation="false" Width="124px"
EmptyMessage="Select a Type of Document" AllowCustomText="true"
EnableItemCaching="true"
MarkFirstMatch="true" AutoPostBack="true" OnSelectedIndexChanged="rdComboSubCategory_OnSelectedIndexChanged" >
</telerik:RadComboBox>
<asp:LinkButton runat="server" CssClass="contentlinks" ID="btnNewDocumentType" OnClick="ShowSubcategoryDialog" CausesValidation="false" >New</asp:LinkButton>
<div class="panelCSS" >
<asp:UpdatePanel ID="unlDoc" runat="server">
<ContentTemplate>
<div id="dvDocument" style="display: none">
<div>
<uc1:Document ID="ucAddDoc" runat="server" />
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<asp:HiddenField runat="server" ID="hdnSubCat" />
<ajaxToolkit:ModalPopupExtender TargetControlID="hdnSubCat" PopupControlID="dvDocument"
BackgroundCssClass="modalBackground" runat="server" ID="mdlDocument">
</ajaxToolkit:ModalPopupExtender>
</td>
</tr>
I've already answered to your support ticket regarding this forum post. We couldn't reproduce the problem with the following code provided, so please send us a runnable version of your project in the ticket as attaching zip files is not allowed in the forums.
All the best,
Dimitar Terziev
the Telerik team