EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 15, 2024, 06:16:51 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
prevent data grid selection
Pages: [
1
]
« previous
next »
Print
Author
Topic: prevent data grid selection (Read 5096 times)
crosemffet
Jr. Member
Posts: 68
prevent data grid selection
«
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
Re: prevent data grid selection
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...