Is there any way to select the Row when I right click on it with Context Menu attached?
I am trying to do selectRowById within a function of “onBeforeContextMenu”. But it doesnt work and it kills Context Menu.
Here is what I am trying to do.
viewTree.attachEvent(“onBeforeContextMenu”,function(id,ind,obj){
obj.selectRowById(id);
return true;//block context menu
});
I am actually asking on the wrong thread. I am having problems with DhtmlxTree
I am using
dhtmlxSuite 2010 Rel.1 (DHTMLX 2.6) Professional edition build 100916(with IE9 fix applied) + dhtmlxChart 2.6.5 and IE8.
I was using onBeforeContextMenu as you suggested but when I add selectRow to it it kills context menu and gives javascript error
“‘undefined’ is null or not an object” on this row
obj.selectRow(rowId)
Hey this works great for me when using the grid. One followup question I had was how can I fire my onRowSelect handler after the row is selected in this onBeforeContextMenu function.
Thanks!
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan