Skip to main content

Unbound Mode

In Unbound Mode, ImageSlider is not bound to any data source and can be populated manually. To create image slider items, use the MVCxImageSliderItemCollection.Add methods.

The code sample below demonstrates how to add items to an image slider.

@Html.DevExpress().ImageSlider( s => {
    s.Name="ImageSlider";

    s.Items.Add("Content/1.jpg");
    s.Items.Add("Content/2.jpg");
    s.Items.Add("Content/3.jpg");
    s.Items.Add("Content/4.jpg");
    s.Items.Add("Content/5.jpg");
    s.Items.Add("Content/6.jpg");
}).GetHtml()

The image below illustrates the result.

MVC_ImageSlider_Unbound

See Also