Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gruber on Feb 03, 2008 03:02
open dhtmlx forum
Light mouse navigation and onclick callback.

".setOnRowSelectHandler()" will trigger the provided callback each time cell selection changes with ".enableLightMouseNavigation(true)". This means a hover will trigger the callback, not onclick.

How can I receive a callback only "onclick", with the rowId and colIndex provided?

Answer posted by Support on Feb 04, 2008 05:09
There is no native event for such situation , as possible workaround next code can be used

    dhtmlxEvent(grid.obj,"click",function(e){
       var el = grid.getFirstParentOfType(_isIE?event.srcElement:e.target,"TD");
       var ind=el._cellIndex;
       var id=el.parentNode.idd;
       //any custom code here
    });