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

Set orientation in C#

3 Answers 76 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Henry
Top achievements
Rank 1
Henry asked on 18 Apr 2013, 02:25 AM
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

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Apr 2013, 04:10 AM
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.
0
Henry
Top achievements
Rank 1
answered on 19 Apr 2013, 08:06 AM
Hi Princy, Thanks for your reply. The Telerik.Web.UI.Orientation reference is not working.  It seems the reference is missing. Please help.
0
Princy
Top achievements
Rank 2
answered on 19 Apr 2013, 09:02 AM
Hi,

Please try the following code snippet.

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

Thanks,
Princy.
Tags
Slider
Asked by
Henry
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Henry
Top achievements
Rank 1
Share this question
or