Back to Devexpress

ASPxHint.ContentAttribute Property

aspnet-devexpress-dot-web-dot-aspxhint-b8988c34.md

latest2.1 KB
Original Source

ASPxHint.ContentAttribute Property

Gets or sets the attribute name.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
StringString.Empty

A string value that is the attribute name.

|

Remarks

Use the ContentAttribute property to specify from which target element‘s attribute a hint obtains its content.

aspx
<dx:ASPxHint ID="ASPxHint1" Selector=".dxgv1" Position="Right" ContentAttribute="data-content" runat="server"></dx:ASPxHint>

Note that the ContentAttribute property default value is title. So if the hint’s content is located in the target element’s title attribute, it is no need to specify the hint’s ContentAttribute property.

­

aspx
<label title="Hint Content" class="dxgv1">label</label>        
<dx:ASPxHint ID="ASPxHint1" Selector=".dxgv1" runat="server"></dx:ASPxHint>

To define the hint’s content directly, use the ASPxHint.Content property.

See Also

How to: Set Hint Content

ASPxHint Class

ASPxHint Members

DevExpress.Web Namespace