Skip to main content
A newer version of this page is available. .

When To Show a Hint

The ASPxHint can be displayed in two ways.

  • In response to user interaction using the ASPxHint.TriggerAction property.

    
    <dx:ASPxHint ID="ASPxHint1" TargetSelector=".myImage" TriggerAction="HoverAndFocus" runat="server"></dx:ASPxHint>        
    <dx:ASPxImage ID="ASPxImage1" ImageUrl="~/Content/myImage.png" CssClass="myImage" runat="server"></dx:ASPxImage>
    
  • Programmatically on the client using the ASPxClientHintOptions.triggerAction property in the ASPxClientHint.Register client-side method’s options parameter.

    
    <dx:ASPxImage ID="ASPxImage1" ImageUrl="~/Content/myImage.png" CssClass="myImage" runat="server"></dx:ASPxImage>
    <dx:ASPxButton ID="ASPxButton1"  runat="server" Text="Button" AutoPostBack="False"> 
        <ClientSideEvents Click="function(s, e) {ASPxClientHint.Register('.myImage', {content: 'sample content', triggerAction: 'hover'});}" /> 
    </dx:ASPxButton> 
    <dx:ASPxHint ID="ASPxHint1" runat="server"></dx:ASPxHint>
    
See Also