Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]HTML Editor
  [Expand]Image and Data Browsing
  [Collapse]Docking and Popups
   [Expand]Docking
   [Collapse]Hint
     Overview
    [Collapse]Task-Based Help
      Where To Locate a Hint
      How to Set Hint Content
      When To Show a Hint
   [Expand]Loading Panel
   [Expand]PopupControl
  [Expand]Navigation and Layout Extensions
  [Expand]File Management
  [Expand]Multi-Use Site Extensions
  [Expand]Charts
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Tree List
  [Expand]Data Editor Extensions
  [Expand]Report Extensions
  [Expand]SpellChecker
 [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 DevExpress Hint consists of the Title and Content elements.

Use one of the following approaches to set a Hint’s content and title:

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

A Hint allows setting its content and title text in two ways:

  • Specify the content and title text directly using the HintSettings.Content and HintSettings.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 ASPxClientHintOptions.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 for two ways.

Expanded See Also

How would you rate this topic?​​​​​​​