Skip to content

DevExpress-Examples/asp-net-web-forms-grid-command-buttons-with-tooltips

Repository files navigation

Grid View for ASP.NET Web Forms - How to create command buttons with tooltips

Command buttons in ASPxGridView do not support tooltips. This example demonstrates how to emulate command buttons or custom buttons with HTML elements and provide tooltips for them (attribute title).

<dx:GridViewDataTextColumn Name="Command" Caption="#" VisibleIndex="0">
    <DataItemTemplate>
        <a href = "javascript:grid.AddNewRow();" title="Add new row">New</a>
        <a href = "javascript:grid.StartEditRow('<%#Container.VisibleIndex%>');" title="Start edit row '<%#Container.VisibleIndex%>'">Edit</a>
        <a href = "javascript:grid.DeleteRow('<%#Container.VisibleIndex%>');" title="Delete row '<%#Container.VisibleIndex%>'">Delete</a>
        <a href = "javascript: alert ('This is the custom button');" title="Custom action">Custom action</a>
    </DataItemTemplate>
</dx:GridViewDataTextColumn>

Files to Review

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Emulate command buttons or custom buttons with HTML elements and provide tooltips for them

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •