ItemsRequested Server event - not an AJAX call back?

2 posts, 0 answers
  1. Jason Gauntz
    Jason Gauntz avatar
    4 posts
    Member since:
    Sep 2009

    Posted 04 Jul 2011 Link to this post

    I have one RadComboBox on a page with Load On Demand enabled.  I have subscribed to the ItemsRequested server side event to handle the loading of the page.  Is the called back to the server for the ItemsRequested event an AJAX call - as from what I can see it is not doing an AJAX call.  This is what I have below:

    //This is the AJAX Manager where DatabaseName is a RadComboBox.  I have also subscribed to ClientEvents for Request Start and ResponseEnd - BUT THESE NEVER GET CALLED WHEN THE ITEMREQUEST EVENT IS TRIGGERED?????

     

    <telerik:RadAjaxManager ID="RadAjaxManager2" OnAjaxRequest="RadAjaxManager1_AjaxRequest" runat="server"

     

    <AjaxSettings>

     

    <telerik:AjaxSetting AjaxControlID="DatabaseName">

     

    <UpdatedControls>

     

    <telerik:AjaxUpdatedControl ControlID="DatabaseName" LoadingPanelID="RadAjaxLoadingPanel2" />

    </UpdatedControls>

    </telerik:AjaxSetting>

     

    </AjaxSettings>

     

    <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />

     

    </telerik:RadAjaxManager>

     

     

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Transparency="50" BackColor="Silver">

    <div>

     

    <img src="images/Loading.gif" alt="Loading..." />

    </div>

    </telerik:RadAjaxLoadingPanel>

     
    //Here is my Rad Combo where I subscribe to the ItemsRequested event
    <telerik:RadComboBox ID="DatabaseName" runat="server" Width="290px" Height="150px" ItemsPerRequest="10" 

    EnableAutomaticLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true"

     

    DataValueField="Name" DataTextField="Name" LoadingMessage="Loading..." ShowWhileLoading="true" AutoPostBack="true"

     

    OnItemsRequested="DatabaseName_ItemsRequested"

    >


    So basically in summary whenever the ItemRequested event if fired - it correct does some type of postback (this is my question) to the corrrect function on the server.  But in my AjaxManager I subscribe to the client events RequestStart and ResponseEnd which are never called when the ItemsRequested event is triggered on the server.  So this makes it appear that I can not intercept the call back to the server using these client events - which makes me wonder what type of post back is being done? 

    Any help would be greatly appreciated.
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 06 Jul 2011 Link to this post

    Hello Jason,

    When a request for items is initiated a callback to the server is made and not an ajax request. This is why the OnRequestStart and OnResponseEnd events are not fired.

    Please refer to the following help article for more information on how the load on demand is working.

    Kind regards,
    Dimitar Terziev
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top