Set orientation in C#

4 posts, 0 answers
  1. Henry
    Henry avatar
    44 posts
    Member since:
    Feb 2013

    Posted 17 Apr 2013 Link to this post

    Hi folks,

    How to set the Radslider orientation from C#? I tried giving RadSlider1.Orentation = "Vertical" but I am getting
    an error.

    Thanks
    Henry GIbbs
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 17 Apr 2013 Link to this post

    Hi,

    The RadSlider orientation can be set from the code behind as follows.

    C#:
    RadSlider1.Orentation = Telerik.Web.UI.Orientation.Vertical;

    Please have a look at this demo on Setting the orientation of the slider.

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Henry
    Henry avatar
    44 posts
    Member since:
    Feb 2013

    Posted 19 Apr 2013 Link to this post

    Hi Princy, Thanks for your reply. The Telerik.Web.UI.Orientation reference is not working.  It seems the reference is missing. Please help.
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 19 Apr 2013 Link to this post

    Hi,

    Please try the following code snippet.

    C#:
    RadSlider1.Orientation = System.Web.UI.WebControls.Orientation.Vertical;

    Thanks,
    Princy.
Back to Top