Title: prevent data grid selection Post by: crosemffet on June 13, 2017, 04:51:37 PM hello everybody and thanks in advance for your support.
I have the following data grid: <table class="easyui-datagrid" id="dg-history" name="dg-history" title="xx" data-options="pagination:false,singleSelect:true,url:'ajaxCommander.php?action=getCardLog'"> <thead> <tr> <th data-options="field:'cards_log_ta',width:150" align="center"><?php echo $textows[97];?></th> <th data-options="field:'cards_state_text',width:130" align="center"><?php echo $textows[73];?></th> <th data-options="field:'operators_uname',width:150" align="left"><?php echo $textows[71];?></th> </tr> </thead> </table> the question is: how can I prevent the yellow row selection when user clicks in the row or cell? I mean, I want when click inside the datagrid do nothing.... thanks again, Title: Re: prevent data grid selection Post by: qianet on June 13, 2017, 09:49:38 PM Events:
onBeforeSelect(index,row) Fires before the user selects a row, return false to cancel this action. Available since version 1.4.1. |