ASPxClientImageSlider.GetActiveItem Method

Returns the active item within the ASPxImageSlider control.


GetActiveItem(): ASPxClientImageSliderItem


Type Description

An ASPxClientImageSliderItem object that denotes the active item.


The image slider control's client-side functionality allows item objects to be accessed programmatically on the client side. The active item can be obtained on the client side by using the GetActiveItem method,

In order to select a specific item on the client side, use the ASPxClientImageSlider.SetActiveItem method.


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

View Example

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