Set Scrolling for RadPane Client Side

4 posts, 2 answers
  1. Erik
    Erik avatar
    4 posts
    Member since:
    Dec 2012

    Posted 17 Jun 2014 Link to this post

    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
  2. Answer
    Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 19 Jun 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Erik
    Erik avatar
    4 posts
    Member since:
    Dec 2012

    Posted 19 Jun 2014 in reply to Vessy Link to this post

    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
  5. Answer
    Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 24 Jun 2014 Link to this post

    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.

     
Back to Top