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

RadRotator itemShowing

1 Answer 52 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
nasrin
Top achievements
Rank 1
nasrin asked on 30 Jul 2011, 07:05 AM
Hi dear,
my javascript code dosen't work and i got stack overflow error after a timeout.
this is my javascript code for itemShowing:

 

function itemShowing_handler(sender, args)

 

{

log(sender.get_id() +

" is about to change a frame");

 

 

 

var rotator = $find("<%= RadRotator1.ClientID %>");

 

rotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Right);

}

I have 2 rotator, RadRotator1 and RadRotator2. RadRotator2 has 4 items in every showing, RadRotator1 must show items of RadRotator2, one by one in the duration of itemshowing of RadRotator2. but

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 03 Aug 2011, 04:56 PM
Hello Nasrin,

It seems that the message has been cut short and is not whole, so please repost your entire query so that we can get e better understanding of your issue.

  I tried reproducing your scenario as best as I could understand it and on my end it seems to be functioning correctly: http://screencast.com/t/rVLHjhZolil. I left it running on my machine for a while and there were no issues. I have attached my test project here as a reference. Please compare it with yours and see if there are any major differences. If this is the desired functionality please use my sample as basis for incorporating it in your actual project.

As for the error - please make sure that you are not calling the showNext() method of the rotator whose OnClientItemShowing handler you are using, as this could result in an infinite loop as every item showing would trigger another event and another showing.

If this does not help you resolve the situation I would advise modifying my sample so that it matches your needs and displays the unwanted behavior and sending it back so I can debug it locally and pinpoint the cause.


All the best,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Rotator
Asked by
nasrin
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or