EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
October 17, 2025, 10:27:17 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
>
some fields readonly only if existing row
Pages: [
1
]
« previous
next »
Print
Author
Topic: some fields readonly only if existing row (Read 5242 times)
markalves
Newbie
Posts: 15
some fields readonly only if existing row
«
on:
April 19, 2020, 10:13:58 AM »
Hi I would like to set some fields readonly only if editing existing row:
Existing rows I want to make readonly have a colum set to 9, I made in this way:
onBeforeEdit: function(index,row){
var col = $(this).edatagrid('getColumnOption', 'qta');
alert(getSelectedValue('#dg3', 3))
if( getSelectedValue('#dg3', 3) == 9) {
col.editor = null;
} else {
col.editor = 'text';
}
}
It works but if after editing these rows then I add a new row selectedvalue remain to 9 and it remain readonly.
Is there a way to verify if new row or after editing clear buffer ?
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...