RadRotator itemShowing

2 posts, 0 answers
  1. nasrin
    nasrin avatar
    4 posts
    Member since:
    Jul 2011

    Posted 30 Jul 2011 Link to this post

    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
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 03 Aug 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top