Hi,
I'd like to be able to build my RowContextMenu at run-time based on the row being selected. Based on values in the selected row, I need to be able to modify my row context menu and JS calls to it.
How can I achieve this?
Thanks!
Hey,
I had to modify my code a around a little more. Now the problem is no context menu comes up at all. Not even the browser's. I attached a sample to demonstrate. Any code I commented out in the GridMouseDown event I did so because it came up with a JS error. This code uses the Northwind Database. You may have to edit the ConnectionString in the .cs file.
Thanks for your help!
Hello Khaled,Is this issue occuring with the sample i provided or it is occuring in your project? If it is the second one please provide an isolated sample which reproduces the issue. Also are you with the same build as the sample.
Hi Nikifor,
I tried to recreate your code in mine. I can step through the code and see the row context menu values being added on server side, and I see the client side code being hit. However, when I right click, I don't get the menu to pop up. I just get the browser's context menu.
One thing to note: eventArgs.get_item().get_row() This call gave me an error. There is no .get_row(). In fact when I step through with FireBug, I can't find that function after I type in get_item()
Any ideas what it may be?
Hello Khaled,I am attaching a sample implementing the scenario in which you load the items in the server. Please take a look at it and look me know if you have any further questions.
I'm not sure I understand.Can you provide sample code?
I can set the following:
<ig:Selection CellClickAction="Cell" CellSelectType="None" ColumnSelectType="None" RowSelectType="Multiple"> <AutoPostBackFlags RowSelectionChanged="true" /> </ig:Selection>
But then, what event do I capture client side to do this?