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

RadComboBox server side event not firing

3 Answers 103 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ashok
Top achievements
Rank 1
Ashok asked on 17 Dec 2010, 05:29 AM
Hi,

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

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Dec 2010, 09:07 AM
Hi,


Have you set the AutoPostBack property of RadComboBox to True?


-Shinu.
0
Ashok
Top achievements
Rank 1
answered on 17 Dec 2010, 11:02 AM
Thanks for reply. Yes its there. I have tried other possible ways also like attaching event manually on page load. I am observing, sometimes it fires the event sometimes not... mostly not.

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>

 



0
Dimitar Terziev
Telerik team
answered on 21 Dec 2010, 04:06 PM
Hi Ashok,

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
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
ComboBox
Asked by
Ashok
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ashok
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or