The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientImageSlider.GetItemCount Method

Gets the number of items contained in the control's item collection.

Declaration

GetItemCount(): number

Returns

Type Description
number

An integer value specifying the number of items.

Remarks

The image slider's client-side functionality allows items to be accessed programmatically. The GetItemCount method is used to determine the number of items which are maintained by the item collection. This method can be used together with the ASPxClientImageSlider.GetItem method when iterating through the item list of the control.

Examples

This example demonstrates how to implement custom SlideShow functionality by using the ASPxImageSlider's client-side API.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.Web.ASPxHiddenField;

namespace E4913 {
    public partial class Default : System.Web.UI.Page {
        protected void Page_Load(object sender, EventArgs e) {

        }

        protected void hfCustomIntervals_Init(object sender, EventArgs e) {
            ASPxHiddenField hiddenField = sender as ASPxHiddenField;

            hiddenField["Cherries"] = 2000;
            hiddenField["Raspberry"] = 5000;
            hiddenField["Strawberry"] = 1000;
            hiddenField["Tomatoes"] = 4000;
        }
    }
}
See Also