Telerik.Web.UI.Slide and Telerik.Web.UI.SlideDuration using Javascript - Not supported in q2 2009 release?

3 posts, 0 answers
  1. Venu Krishnamoorthy
    Venu Krishnamoorthy avatar
    12 posts
    Member since:
    Jul 2008

    Posted 12 Aug 2009 Link to this post

    Hi,

    I have been using telerik ajax asp.net controls since last year. We have been using following piece of code for animating RadDock.
    I just updated my dll to Q2 2009. And I am getting javascript error at following bold line. Then I tried to do alert on Telerk.Web.UI.Slide and Telerik.Web.UI.SlideDirection.Up, but it gives javascript error saying object not defined. Would you please let me know what do I have to change to make following piece of code working?

    var

     

    slide;

     

    var expanded = false;

     

     

    function SetUpAnimation(element) {

    element.style.position =

    "relative";

     

     

     

    if(Telerik.Web.UI.AnimationSettings != null) {
    var expandAnimation = new Telerik.Web.UI.AnimationSettings({});

     

    var collapseAnimation = new Telerik.Web.UI.AnimationSettings({});

     

    slide = new Telerik.Web.UI.Slide(element, expandAnimation, collapseAnimation, false);

     

    slide.initialize();

     

    slide.set_direction(Telerik.Web.UI.SlideDirection.Up);

     

     

    }

    }

     

     

    function ExpandPendingDock(element) {

     

     

    if(!expanded) {

    element.parentNode.style.visibility =

    "visible";

     

    element.parentNode.style.display =

    "block";

     

    slide.expand();

    expanded =

    true;

     

    }

    }

     

     

     

    function CollapsePendingDock(element) { 

     

     

    if(expanded) {

    element.parentNode.style.visibility =

    "visible";

     

    element.parentNode.style.display =

    "block";

     

     

    slide.collapse();

    expanded =

    false;

     

    }

    }


    Regards,
    Venu

     

  2. Venu Krishnamoorthy
    Venu Krishnamoorthy avatar
    12 posts
    Member since:
    Jul 2008

    Posted 13 Aug 2009 Link to this post

    Does anyone have idea of what to do with above code? It was working since last year. As soon as I migrated to q2 2009 release, it stops working. Is there any way I can have javasctipt api references for animation and slide class? I have got stuck with this.

    Waiting for reply,
    Venu
  3. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 14 Aug 2009 Link to this post

    Hi Venu,

    In one of the latest versions of our control suite for ASP.NET AJAX we have implemented animation effects (to overcome the need to implement custom animations), when the RadDock is Expanded, Collapsed, Closed or Dragged/Dropped. You can enable these effects by setting the new EnableAnimation property of the RadDock to true (it is false by default).


    Regards,
    Pero
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top