How do i get the keyvalue when i call OnRowContextMenu

1 reply. Last post: May 16, 2013 5:16 AM by Hans Kristian
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

This is a very simple question, but as usual the webgrid control does not make it easy to fathom out.

When i call the the method OnRowContextMenu, eg:

        function OnRowContextMenu(controlId, rowType, rowElement, menuObject) {

            // How do i get the rows keyvalue ID ??

            window.alert(key);

            return true;

        }


How do i get the  keyvalue of the row so i can customise the context menut to suit the data ?

Thanks

All times are GMT -5. The time now is 7:37 PM.
Previous Next