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

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

2 Answers 50 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Venu Krishnamoorthy
Top achievements
Rank 1
Venu Krishnamoorthy asked on 13 Aug 2009, 02:15 AM
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 Answers, 1 is accepted

Sort by
0
Venu Krishnamoorthy
Top achievements
Rank 1
answered on 13 Aug 2009, 05:26 PM
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
0
Pero
Telerik team
answered on 14 Aug 2009, 11:07 AM
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.
Tags
Dock
Asked by
Venu Krishnamoorthy
Top achievements
Rank 1
Answers by
Venu Krishnamoorthy
Top achievements
Rank 1
Pero
Telerik team
Share this question
or