MVC5 Classic
Change Orientation

The wijslider widget can appear either horizontally or vertically on your Web page. This topic will walk you through changing the default horizontal orientation for the wijslider widget. See the Slider > Orientation sample of the MVC Control Explorer live demo at http://demo.componentone.com/ASPNET/MVCExplorer/slider/Overview .

  1. In the Layout.cshtml file, find the script you used to initialize the widget.
  2. Find the orientation option in the script. It should be set to "horizontal".  Change this option to "vertical".
  3. Find the CSS style you added earlier. Change the "width" option to "height".
  4. Run your program. Your slider should resemble the following image:

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback