HeadlineSettings.TailText Property
Gets or sets the tail text.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.1.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A string value that specifies the tail text. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to TailText |
---|---|
ASPxNewsControl |
|
Remarks
A click on the headline’s tail navigates the application to the specified location. The position of the tail text within the headline is specified by the HeadlineSettings.TailPosition property.
Note
The tail text is displayed if the ASPxNewsControl.NavigateUrlField and/or the ASPxNewsControl.NavigateUrlFormatString properties are defined.
Note
The ASPxWebControl.EncodeHtml property is not in effect for the TailText property. So the TailText property value is not HTML encoded and is rendered as pure HTML markup.
Refer to the HTML Encoding topic for more information.
Example
This example demonstrates how the ASPxNewsControl control can be customized to make use of the SEO-friendly paging feature.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>
<%@ Register Assembly="DevExpress.Web.v8.3, Version=8.3.2.0, Culture=neutral,
PublicKeyToken=b88d1754d700e49a"
Namespace="DevExpress.Web.ASPxNewsControl" TagPrefix="dxnc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>SEO-friendly paging in the ASPxNewsControl</title>
</head>
<body>
<form id="form1" runat="server">
<dxnc:ASPxNewsControl ID="ASPxNewsControl1" runat="server"
DataSourceID="dsSampleDataSource"
NavigateUrlFormatString="javascript:void('{0}');" Width="100%" >
<PagerSettings SEOFriendly="Enabled"></PagerSettings>
<ItemSettings ShowImageAsLink="True" MaxLength="120" TailText="Details" />
</dxnc:ASPxNewsControl>
<asp:XmlDataSource ID="dsSampleDataSource" runat="server"
DataFile="~/App_Data/NewsControlRSS.xml"
TransformFile="~/App_Data/NewsControlRSS.xslt" XPath="//item" />
</form>
</body>
</html>