Hi,
I want to display a context menu inside the child band of the WHDG. Also it should update a sql table from server side depend upon the selected menu option. User should able to select single or multiple rows. Can anyone help me in this?
Thanks,
Mits
Hi Duane,
Sorry for late reply. I have implemented this feature. So far no question with this matter.
Hello mits281,
This is just a follow up on the thread if you have any further questions on handling the MouseDown client side event of the grid. In the attached sample how to display a context menu when right clicking on the grid.
Let me know if you have any questions with this matter. Thank you.
For displaying a context menu I didn't find a way to handle this within the child band however there is a client side MouseDown event that you can handle and show the context menu. I attached a sample for when right clicking on the mouse button. You can add an additional check within eventArgs.get_browserEvent() to access the attribute button to determine right clicking. When accessing the client side menu object you can call the showAt() method and pass get_browserEvent() as a parameter.
This is done mainly on the client side. For server side operations you may have to commit a postback programatically.