New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Provides data for a page navigation command in RadImageGallery and encapsulates the logic that applies the new page index during command execution. Raised through the Page command (First/Prev/Next/Last or explicit index).

Definition

Constructors

C#
public ImageGalleryPageIndexChangedEventArgs(object commandArgument)
Parameters:commandArgumentobject

Properties

Gets the new CurrentPageIndex that will be applied to the RadImageGallery control after the command has executed.

C#
public int NewPageIndex { get; }

Methods

Executes the page change command sequence:

  1. Resolves the target index.
  2. Raises Command / PageIndexChanged events (with cancellation support).
  3. Applies page index (resets CurrentItemIndex) and rebinds.
C#
public override void ExecuteCommand(RadImageGallery gallery)
Parameters:galleryRadImageGallery

The target RadImageGallery instance.

Overrides: ImageGalleryCommandEventArgs.ExecuteCommand(RadImageGallery)