Back to Devexpress

How to: Set Hint Content

aspnet-118556-components-docking-and-popups-hint-control-how-to-set-hint-content.md

latest3.1 KB
Original Source

How to: Set Hint Content

  • Oct 06, 2023
  • 4 minutes to read

The ASPxHint control consists of the Title and Content elements.

Use one of the following techniques to specify the Hint control’s content and title:

Use the Content, ContentAttribute, Title, and TitleAttribute properties.

The ASPxHint control allows you to set its content and title text in the following ways:

Use the Show() method

The ASPxClientHint.Show method invokes a hint. It also obtains the content and title arguments that can be specified in the following ways. Note that the title argument is optional.

  • Pass the HTML-based hint’s content and title directly as the Show method’s arguments.

  • Specify the target element‘s attributes from which a hint obtains its content and title.

  • Use the onShowing function to specify the HTML-based hint’s content and title dynamically. This function can be used either as the Show method’s second argument or as a part of the method’s options argument (ASPxClientHintOptions).

Use the Register() method

The ASPxClientHint.Register method registers a hint’s functionality with the specified settings. It also obtains the content and title arguments that can be specified in the following ways. Note that the title argument is optional.

  • Pass the HTML-based hint’s content and title directly as the method’s arguments.

  • Specify the target element‘s attributes from which a hint obtains its content and title.

  • Use the method’s onShowing function to specify the hint’s content and title dynamically. This function can be utilized either as the Register method’s second argument or as a part of the options argument (ASPxClientHintOptions).

See Also

Online Demo: ASPxHint - Load Content on Demand

How to: Specify Hint Position

How to: Specify Hint Timing