ASPxClientImageSlider.GetItem(index) Method
Returns an item specified by its index within the image slider’s item collection.
Declaration
GetItem(
index: number,
forceLoad?: boolean
): ASPxClientImageSliderItem
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the item to be retrieved. |
forceLoad | boolean |
|
Returns
Type | Description |
---|---|
ASPxClientImageSliderItem | An ASPxClientImageSliderItem object that is the collection item found. |
Remarks
An image slider’s client-side functionality enables you to programmatically access and manipulate a particular item on the client side. Use the GetItem method to get the client-side item object at the specified index and to force its loading if required (if the ImageSliderBehaviorSettingsBase.EnableVirtualPaging property is set to true
). This method can be used together with the ASPxClientImageSlider.GetItemCount method when iterating through the list of control items.
Note that the index parameter is zero-based and its largest available value is specified by the ASPxClientImageSlider.GetItemCount value decremented by one. If you pass an invalid index via the parameter, the method returns null.
Refer to the Paging topic for more information.