APNSoft - Web Controls, components for ASP.NET Home Help Center Contact Us
About UsProductsDownloadsPurchase
Support

DataGrid
Version 3.1



What's New
Overview
Features
Reference Book
Licensing
Support



Populating with Data
Columns   (general)
Columns   (templates)
Rows
Bottom Bar
Layout and Behavior
Exporting
Skins






APNSoft DataGrid provides you with full support for cross-browser context menu. You can use context menu for rows or column headers. Please right-click anywhere on the Grid to activate the context menu. If you use Opera, activate context menu by the command
Control key + Left mouse button.

You use the GridContextMenuHeader.Template property to specify the template for column headers or GridContextMenuRow.Template property to specify the template for rows. The property value is a raw XML string or path to the XML template file for context menu.
To learn more about template for Context Menu, please click here.

You can use multiple context menus and switch between them on the client side. This example displays alternate context menu for the 'BERGS' row. To use additional context menus do the following:
  • Add context menu on the server side by using the method AddContextMenu().
  • Set the property ClientSideOnContextMenuRow (or ClientSideOnContextMenuHeader for headers). This property specifies the name of the client-side function to be called before the context menu is displayed.
  • Create a client-side procedure as specified by the ClientSideOnContextMenuRow property. In this procedure you replace the default context menu with the additional one.
Note. All changes are stored in the user's current session.


Code Samples:
Default.aspxDefault.aspx.csDefault.aspx.vbCntMnuHeaders.xml
CntMnuRows.xmlCntMnuRowsAdd.xmlUpdateDelete.htmEditForm.ascx
EditForm.ascx.csEditForm.ascx.vbSkin StyleSkin Images
Nwind.mdb   


  © 2003-2010 APNSoft. All rights reserved. Table of Contents   Terms of use   Contact Us   Help Center