Intersoft WebGrid Documentation
How-to: Use WebContextMenu as WebGrid's context menu
See Also Send comments on this topic.

Glossary Item Box

One of the advantages of Intersoft's components is compatibility among all of the components. Now, you will learn to use WebContextMenu from Intersoft's WebDesktop as WebGrid's context menu.

In this topic, you will learn how to use WebContextMenu as WebGrid's context menu.

To add WebContextMenu as WebGrid's context menu

WebContextMenu is part of WebDesktop so you need to have WebDesktop to implement this feature.

  1. Open WebContextMenu's properties and set ControlId to your WebGrid's Id (eg:WebGrid1).
  2. In Properties box, click the Items Collection button. It will bring you to the WebMenuItem Collection Editor box
  3. Click Add to add WebMenuItem

  4. Add OnRowContextMenu in WebGrid client side event

    JavaScript Copy ImageCopy Code
    function WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject) {
    return false; }

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.