Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

Show a popup window in response to right-clicking a grid row

$
0
0

This demo shows how to:
    - Use client-side events to respond to right-clicking a grid.
    - Use client-side functions to identify the clicked row.
    - Invoke a popup control with additional information about the clicked row.
    
    Please look at the JS code (JS tab on the Code page) to find out how to do this.

Question Comments

Added By: Brad C at: 8/5/2014 4:30:02 PM    

what is popup_notesEditor ?? doesn't seem to be declared anywhere

Added By: Andrew (DevExpress) at: 8/5/2014 10:52:03 PM    

Hi Brad,
Yes, it is not obvious. Let me explain this.
The most our server side asp.net controls have corresponded j script/client widgets. They have the same name as server side control. For example, ASPxGridView  on server and ASPxClientGridView on client.
The grid in this example has name “grid” ID="grid" PopupControl has ID=”popup”, Memo control inside the popup control has ID=”notesEditor”. The full name for memo control (id + all parent controls ids, excluding page) is “popup_notesEditor”. So here is what we have.
If you run the demo and “View Source”, you will see the following generated Jscript:
var dxo = new ASPxClientMemo('popup_notesEditor');

Thank you,
Andrew R&D.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>