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

On Demand web service call retry?

2 Answers 33 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Fadi
Top achievements
Rank 1
Veteran
Fadi asked on 03 Feb 2015, 03:00 PM
We're trying to work around a possible network/browser issue at a client site. Occasionally the on demand web service call is failing. The request the browser  makes is completely empty. Any subsequent call succeeds. Is there any way to retry the web service call up to 3 times before returning an error? It's easy enough in jQuery, but I can't find how to manage the calls myself with the RadComboBox

Thanks.

2 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 06 Feb 2015, 08:33 AM
Hello Fadi,

You can handle the OnClientItemsRequestingFailed client-side event of the RadComboBox, in order to capture the error if there is any. If the issue originates from the fact that not data is returned, you can use the OnItemRequested. However, in both cases you can use the requestItems method of the RadComboBox to re-initiate a request to the WebService.

Regarding the requestItems method and other important client-side methods of the RadComboBox, you can refer to the following documentation article :

http://www.telerik.com/help/aspnet-ajax/combobox-client-side-radcombobox.html

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Fadi
Top achievements
Rank 1
Veteran
answered on 09 Feb 2015, 02:15 PM
Thanks for the info, I believe this will work and using a simulated failure it retires perfectly!
Tags
ComboBox
Asked by
Fadi
Top achievements
Rank 1
Veteran
Answers by
Nencho
Telerik team
Fadi
Top achievements
Rank 1
Veteran
Share this question
or