ImageSliderItem.Name Property
Gets or sets the unique identifier name for the current item.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A string value that specifies the item’s unique identifier name. |
Remarks
The Name property specifies the unique identifier name for the current item. This property can be used at runtime to obtain a particular item specified by its unique identifier name (via the ASPxClientImageSlider.GetItemByName method) rather than by its index and display text.
Example
This code sample demonstrates how you can manually create ASPxImageSlider items and specify the items’ properties.
<dx:ASPxImageSlider ID="ASPxImageSlider1" runat="server">
<Items>
<dx:ImageSliderItem ImageUrl="~/Images/img1.jpg" Name="Sunset"
NavigateUrl="~/sunset.asp" Text="Sunset" ThumbnailUrl="~/Thumbnails/thumb1.jpg" />
<dx:ImageSliderItem ImageUrl="~/Images/img2.jpg" Name="Lupines"
NavigateUrl="~/lupines.asp" Text="Lupines" ThumbnailUrl="~/Thumbnails/thumb2.jpg" />
<dx:ImageSliderItem ImageUrl="~/Images/img3.jpg" Name="Road"
NavigateUrl="~/road.asp" Text="Road" ThumbnailUrl="~/Thumbnails/thumb3.jpg" />
</Items>
</dx:ASPxImageSlider>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Name property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.