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

Load on demand not working it is triggered after ajax postback

5 Answers 104 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 2
Markus asked on 07 Oct 2008, 01:14 PM
Hello!

I have a few combos on the page each making an ajaxpostback after "SelectedIndexChanged event". The combos use LoadOnDemand as well.

Actually things work fine except for one situation: If I trigger the "selectedIndexChangedEvent" and in the second after the ajaxpostback has finished(eg. right after the loadingpanel disappears) I try to expand a combobox (that loads on demand) the loading gets stuck and never finishes.

I tried to reproduce the error but with no success. It seems to work well in small application, but in our application this issue occurs whereever it is possible.

Do you have any ideas or suggestions how to solve this? Is there a way to leave the loadingPanel on the page a few milliseconds after loading has actually finished?

Thx in advance & kind regards
 

5 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 07 Oct 2008, 01:31 PM
Hello Markus,

This is a very strange problem.

I suggest you upgrade to our latest official build 2008.2.1001  and let us known how this goes.

Also you could prevent requesting items while the ajax update is not finished.

To do this I suggest you subscribe to OnRequestStart and OnResponseEnd client events of RadAjax and update a global variable when the ajax request is started and finished. Then you can use it OnClientItemsRequesting event of RadComboBox to cancel the load on demand request if the ajax request is not finished.

For example:
<script>  
var ajaxRequest = false;  
 
function OnRequestStart()  
{  
  ajaxRequest = true;  
}  
 
function OnResponseEnd()  
{  
  ajaxRequest = false;  
}  
function OnClientItemsRequesting(sender,e)  
{  
  e.set_cancel(ajaxRequest);  
}  
</script> 


Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Markus
Top achievements
Rank 2
answered on 07 Oct 2008, 01:38 PM
Hi Rosi!

Thx for your reply. I'm using version 515 right now, updating would be great, but as we were forced to use a lot of javascriptcode in our application, I fear that some methods have changed and due to this issue half of the javascript logic won't work anymore.

For example during the lastupdate some methodnames changed from getValue() to get_value().

Could you please outline what method signatures have changed at the client-side api?

thx in advance & kind regards!
0
Rosi
Telerik team
answered on 07 Oct 2008, 02:23 PM
Hello Markus,

You can review our release history here .

Greetings,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Markus
Top achievements
Rank 2
answered on 09 Oct 2008, 11:29 AM
Unfortunately I can't find the information where it says what javascript method signatures and names have changed...
0
Rosi
Telerik team
answered on 09 Oct 2008, 02:42 PM
Hi Markus,

All changes between different versions of Telerik.Web.UI are described in the link which I provided you. All client-side methods in Telerik.Web.UI strictly follow the ASP.NET AJAX conventions and are lower case.

Name convention is changed mostly from the upgrade from RadControls for ASP.NET to RadControls for ASP.NET AJAX. What changes are made to the control in this case you can read in our help documentation where every control has a Migrating from RadControl Classic to ASP.NET AJAX version topic. For RadComboBox it can be found here.


Kind regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Markus
Top achievements
Rank 2
Answers by
Rosi
Telerik team
Markus
Top achievements
Rank 2
Share this question
or