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

Set Scrolling for RadPane Client Side

3 Answers 89 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 17 Jun 2014, 02:21 PM
Hi,

I have a case where I need to be able to turn scrolling on/off for a RadPane via javascript on the client.

I know there is a server side setting Scrolling="Both/None/X/Y".

Is there a way to do this client side?

Also I'll need this to work on an iPad as well and I noticed things are done slightly differently when mobile/touch is involved (RadTouchExtender css class etc).

Thanks,
Erik

3 Answers, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 19 Jun 2014, 08:18 AM
Hi Erik,

You can set the scrolling of a RadPane on the client by using its set_scrolling() method. The values that it receives as an argument are of type Telerik.Web.UI.SplitterPaneScrolling, for example:
$find("RadPane1").set_scrolling(Telerik.Web.UI.SplitterPaneScrolling.None);
$find("RadPane2").set_scrolling(Telerik.Web.UI.SplitterPaneScrolling.Both);
$find("RadPane3").set_scrolling(Telerik.Web.UI.SplitterPaneScrolling.X);
$find("RadPane4").set_scrolling(Telerik.Web.UI.SplitterPaneScrolling.Y);

Hope this information will be helpful for you.

Regards,
Vessy
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Erik
Top achievements
Rank 1
answered on 19 Jun 2014, 02:50 PM
Thank you!

I was looking at the documentation here:

http://www.telerik.com/help/aspnet-ajax/splitter-client-side-radpane.html

It didn't mention that function but I figured there must be a way.

Thanks,
Erik
0
Accepted
Danail Vasilev
Telerik team
answered on 24 Jun 2014, 10:17 AM
Hi Erik,

Thank you for the note. I have updated our documentation with this regard, so that the change will take effect with the next documentation upload.

I have also updated your Telerik points for helping us improve the quality of our online resources.

Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Splitter
Asked by
Erik
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Erik
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or