Hi,
We are using Ignite UI 2013.vol2 build for developing an ASP.NET MVC application. I would like to know how to bring or popup context menu on the IgGrid right mouse click event.
Please let me know the technical feasibility of this feature.
Regards,
Praveen
Hi Praveen,
Thank you for posting in our forums! We don’t have this functionality build in our product but there are plenty of free solutions in the web. One of them is a custom jQueryUI plugin which you can download from here. I prepared a sample page where I integrated the context menu with our grid. It appears only if you right-click on a selected row. Otherwise the default context menu appears. Please take a look at it and let me know if it works for you.
I’m looking forward to your reply!
Kind regards, Petko Zhekov Senior Software Engineer
Hi Petko Zhekov,
This is what exactly we are looking. Thanks for the solution with the example.
One more question here which is how to extract the values of different columns for the selected row from the same example you given to me.
In this case you can get the id of the record that is selected from the object that ‘selectedRow’ method returns. After that you can use this id to get the whole record with igGrid’s ‘findRecordByKey’method. I updated the sample so you can review it.
Please let me know if you have any further questions!
Petko,
Is there any reason why your sample will not work in version 20122? I recieve the following jQuery error.
Unhandled exception at line 3255, column 6 in jquery-1.7.1.js
0x800a01b6 - Microsoft JScript runtime error: Object doesn't support property or method 'apply'
Hi ieinadex,
The error is not in our code. It seems that you are using a version of jQueryUI that is not supported. You can find the dependencies of the context menu here. Try using more recent version and let me know if this fixes your issue.