RadComboBox server side event not firing

4 posts, 0 answers
  1. Ashok
    Ashok avatar
    2 posts
    Member since:
    Dec 2010

    Posted 16 Dec 2010 Link to this post

    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.


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 17 Dec 2010 Link to this post

    Hi,


    Have you set the AutoPostBack property of RadComboBox to True?


    -Shinu.
  3. Ashok
    Ashok avatar
    2 posts
    Member since:
    Dec 2010

    Posted 17 Dec 2010 Link to this post

    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>

     



  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 21 Dec 2010 Link to this post

    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.
Back to Top