+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / fire ajax event second time

fire ajax event second time

2 posts, 0 answered
  1. tim
    tim avatar
    27 posts
    Registered:
    12 Oct 2010
    16 May 2011
    Link to this post
    hi

    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.set_text("Loading...");
        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">
        <ItemTemplate>
            <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") %>
                </asp:Label>
            </div>
        </ItemTemplate>
    </telerik:RadComboBox>

    and in my pageLoad() function

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

    any thoughts anyone ?

    thanks
    tim
  2. Dimitar Terziev
    Dimitar Terziev avatar
    1 posts
    Registered:
    18 Aug 2016
    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