Im new to this and I have tried to copy the code from one of the demos and added my own data source.
What I wanted to do was create my own right click menu, but can’t get it to detect the difference between right and left clicks.
$(“#treeGrid”).on(‘rowClick’, function (event) {
if (event.args.rightclick) {
alert(“1”); }
else {
alert(“2”);
}
I’ve cut the code down to the above. I always get alert “2” as event.args.clickright is undefined.
It must be something really simple but can’t find it!
Thanks,
Simon