EasyUI Forum
May 15, 2024, 06:16:51 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: prevent data grid selection  (Read 5096 times)
crosemffet
Jr. Member
**
Posts: 68



View Profile WWW Email
« 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,
Logged
qianet
Newbie
*
Posts: 9


View Profile Email
« Reply #1 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!