We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to handle the numerous data in carousel using LoadMore options

Carousel control provides the virtualization support to handle the numerous data. It has been achieved by one of the LoadMore options. In that LoadMore , instead of loading all data, it will split that using LoadMoreItemsCount and render that into our view with LoadMore view. By the way of tapping that LoadMore view (By default there will be LoadMore Label, we have option to customize that LoadMore view), it will another set of items with previous loaded data.

 

Properties are used to achieve LoadMore options

 

Properties

Data Type

Default Value

Usage

AllowLoadMore

Boolean

false

Enable or disable LoadMore options in carousel control

LoadMoreItemsCount

int

3

It will intimate the number of items will be in carousel view.

LoadMoreView

UIView

null

We can customize the LoadMore view by using this property.

ItemsSource

IEnumerable

null

To load the custom class collection of instead of collection of SfCarouselItem

 

Note: DrawView event is used to pass the custom view into your carousel view. It holds the following arguments

 

  1. Index – Gets the indexed of carousel item.
  2. View – Gets and Sets the custom view of carousel’s item.
  3. Item – Gets the indexed carousel item.

 

The following code example illustrates the way to use the LoadMore feature on carousel control.

 

In ViewDidLoad:

 

 

 

 

 

Sample:

 

http://www.syncfusion.com/downloads/support/directtrac/general/ze/LoadMoreSampleiOS717074124

 

Output Will Be Like,

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8890 06/28/2018 06/28/2018 Xamarin.iOS SfCarousel
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.