Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Enric Lafont on Feb 01, 2008 05:36
open dhtmlx forum
Grid Single click

Dear sir,

I can see the doOnRowDblClicked but I'm interested in processing the "Row Single Click" there is any way to do it ? I'm using a read only grid and I've tested to make editable the cells in my grid and using the OnEdit, but insists still on a double click.

There is any way to receive the Single Click event in grids ? I'm reading the knowledge base but can not find any answer.

Thanks for any answer, and thanks a lot for yesterday's fast and correct answer.
Answer posted by Support on Feb 01, 2008 09:51
>>There is any way to receive the Single Click event in grids ? I'm reading the knowledge base but can not find any answer.

There is no special onClick event, but you can use onSelect for the same purpose

    grid.setOnRowSelectHandler(function(){
       //any code here
       return true;
    },true);


Also you can enable edit-by-single-click

    grid.enableEditEvents(true,false,false);