Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]Welcome to DevExpress .NET Documentation
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Collapse]Docking and Popups
   [Expand]Product Information
   [Expand]Docking
   [Collapse]Hint Control
     Overview
    [Collapse]Task-Based Help
      Where To Locate a Hint
      How to Set Hint Content
      When To Show a Hint
   [Expand]Loading Panel
   [Expand]Popup Control
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to Set Hint Content

The ASPxHint consists of the Title and Content elements.

Use one of the following approaches to specify the Hint control's content and title:

Expanded Using the Content, ContentAttribute, Title, TitleAttribute properties.

The ASPxHint control allows setting its content and title text in two ways:

  • Specify the content and title text directly using the ASPxHint.Content and ASPxHint.Title properties.

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

Expanded Using 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.

  • Specify the HTML-based hint's content and title dynamically using the onShowing function. The onShowing function can be used either as the Show method's second argument or as a part of the method's options argument (ASPxClientHintOptions).

    You can also set the HTML content for the hint's content and title directly in the markup.

Expanded Using 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.

    Note that the contentAttribute attribute is set to "title" by default. If the target element's title attribute is specified, there is no need to set the contentAttribute argument value in the Register method.

  • Specify the hint's content and title dynamically using the method's onShowing function. The onShowing function can be utilized either as the Register method's second argument or as a part of the options argument (ASPxClientHintOptions).

    You can also set the HTML-based content for the hint's content and title directly in the markup.

Expanded See Also

Is this topic helpful?​​​​​​​