New to Telerik UI for WinFormsStart a free 30-day trial

Unbound Mode

Updated over 6 months ago

When in unbound mode RadSlideView does not use a data source collection for iterating a collection of records. The control navigates through the defined fixed number of pages either by setting the NumberOfPages property at run time or by specifying it at design time:

WinForms SlideView Number of Pages

When sliding between the pages, the TemplateUpdated event is fired. Since BindingSource is not assigned in this scenario, the event handler provides you access to the visual template, just before the animation is started. This is the appropriate place to load the relevant information to the template considering the RadSlideView.SelectedIndex value. By default, the RadSlideView.TemplateElement is LightVisualElement which will be used here for simplicity of the example.

More advanced TemplateElement is demonstrated in the Demo application >> SlideView >> First look example which also shows the smooth integration between RadSlideView and RadPipsPager

Let's consider that we have a folder "Gallery" with 5 images. When navigating through the pages, a different image will be loaded in the template:

WinForms SlideView UpdImages

C#

        private void UnboundMode()
        {
            this.radSlideView1.TemplateUpdated += RadSlideView1_TemplateUpdated;
            this.radSlideView1.NumberOfPages = 5;
        }

        private void RadSlideView1_TemplateUpdated(object sender, Telerik.WinControls.UI.SlideView.TemplateUpdatedEventArgs e)
        {
            int imageIndex = this.radSlideView1.SelectedIndex + 1;
            e.Template.Image = Image.FromFile(@"..\..\Gallery\Image" + imageIndex + ".png");
        }      
      

WinForms SlideView Update Pages

See Also

In this article
See Also
Not finding the help you need?
Contact Support