EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
March 28, 2024, 12:45:30 PM
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
>
edatagrid lock edit if a column have a certain value
Pages: [
1
]
« previous
next »
Print
Author
Topic: edatagrid lock edit if a column have a certain value (Read 2294 times)
markalves
Newbie
Posts: 15
edatagrid lock edit if a column have a certain value
«
on:
September 17, 2019, 12:39:56 AM »
Hi,
how I can make a row readonly (not editable and not deletable) if a column in edatagrid have a certain value ?
Logged
jarry
Administrator
Hero Member
Posts: 2260
Re: edatagrid lock edit if a column have a certain value
«
Reply #1 on:
September 20, 2019, 10:41:00 AM »
Returning false in 'onBeforeEdit' event will abort the editing action.
Code:
$('#dg').edatagrid({
onBeforeEdit: function(index,row){
// return false on some conditions
return false;
}
})
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...