EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jwilliquor on October 02, 2012, 06:49:52 AM



Title: Datagrid onClickRow event
Post by: jwilliquor on October 02, 2012, 06:49:52 AM
Is there a way to get the event for an onClickRow of a datagrid.  I want to override how the click is handled but i cannot detect keydowns and such.  Here's what I would like todo for instance but e is not sent in to this event like it is for the onRowContextMenu event.

onClickRow: function(rowIndex, rowData){
            debugger;
            if(!e.ctrlKey){
                $('#gridMain').datagrid('unselectAll');
            }
            $('#gridMain').datagrid('selectRow', rowIndex);
        }