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

ItemsRequested Server event - not an AJAX call back?

1 Answer 97 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jason Gauntz
Top achievements
Rank 1
Jason Gauntz asked on 04 Jul 2011, 09:58 PM
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.

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 06 Jul 2011, 11:16 AM
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!

Tags
ComboBox
Asked by
Jason Gauntz
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or