More in this section
Forums / Developing with Sitefinity / fire ajax event second time

fire ajax event second time

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. tim
    tim avatar
    27 posts
    12 Oct 2010
    16 May 2011
    Link to this post

    I have seen a few q's like this, have tried the solutions but to no avail and was wondering if I'm missing something blindingly obvious. I have a RadComboBox that gets populated depending on a list of company id's, that all works fine, but when I remove one of the companies and call the same function it doesnt fire off again, it gets to the function but doesnt do anything. If I call it first time from the javascript it works fine but again not the 2nd. I dont get any errors so am a little stuck. the jscript code is as follow

    function LoadCases(caseList)
        casesCombo.requestItems(caseList, false);                   
        casesCombo.set_text("Case types loaded");

    and my combobox

    <telerik:RadComboBox ID="ddlCaseType" OnClientItemsRequested="ItemsLoaded" OnItemsRequested="ddlCaseList_ItemsRequested" CssClass="BasicForm" AllowCustomText="true" EmptyMessage="Please Select..." HighlightTemplatedItems="true" runat="server" EnableScreenBoundaryDetection="false" EnableLoadOnDemand="true" AutoPostBack="false">
            <div onclick="StopPropagation(event)" class="combo-item-template">
                <asp:CheckBox runat="server" ID="chk1" Checked="false" onclick="onCheckBoxClick(this)"/>
                <asp:Label runat="server" ID="Label1" AssociatedControlID="chk1">
                    <%# Eval("CASE_TYPE_LABEL") %>

    and in my pageLoad() function

    casesCombo = $find("<%= ddlCaseType.ClientID %>");

    any thoughts anyone ?

  2. Dimitar Terziev
    Dimitar Terziev avatar
    1 posts
    09 Feb 2017
    19 May 2011
    Link to this post
    Hello Tim,

    From what you have provided as a code snippet, there is no obvious reason why you experience this issue.
    Could you show us where this "LoadCases" function is called, because if the RadCombobox is not loading data then either this function is not called or the caseList value is empty.

    All the best,
    Dimitar Terziev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered