Back to Devexpress

ASPxTitleIndex.NavigateUrlField Property

aspnet-devexpress-dot-web-dot-aspxtitleindex-b28af38b.md

latest2.5 KB
Original Source

ASPxTitleIndex.NavigateUrlField Property

Gets or sets the data source field which provides item URLs.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public string NavigateUrlField { get; set; }
vb
<DefaultValue("")>
Public Property NavigateUrlField As String

Property Value

TypeDefaultDescription
StringString.Empty

A string value that specifies the name of the data source field which contains item URLs.

|

Remarks

When the ASPxTitleIndex control is data bound, the name of the data field that provides URLs for items is specified by the NavigateUrlField property. Otherwise, if the control functions in unbound mode, use the item’s TitleIndexItem.NavigateUrl property to specify the item’s URL.

Example

This example demonstrates how to implement custom group ranges in the ASPxTitleIndex.

aspx
...
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/nwind.mdb"
SelectCommand="SELECT * FROM [Customers]"></asp:AccessDataSource>

<dxti:aspxtitleindex id="ASPxTitleIndex1" runat="server" groupingfield="GroupText"
    navigateurlfield="ID" navigateurlformatstring="?id={0}" textfield="ContactName">
    <FilterBox Visible="False"></FilterBox>
    <Columns>
        <dxti:Column></dxti:Column>
        <dxti:Column></dxti:Column>
        <dxti:Column></dxti:Column>
        <dxti:Column></dxti:Column>
        <dxti:Column></dxti:Column>
    </Columns>
</dxti:aspxtitleindex>
...

See Also

NavigateUrlFormatString

Title Index

ASPxTitleIndex Class

ASPxTitleIndex Members

DevExpress.Web Namespace