EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 10, 2024, 01:36:24 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
>
edatagrid disableEditing
Pages: [
1
]
« previous
next »
Print
Author
Topic: edatagrid disableEditing (Read 7276 times)
melane
Newbie
Posts: 14
edatagrid disableEditing
«
on:
June 23, 2013, 10:31:01 PM »
Hi,
In some cases I do not want to allow my datagrid to be editable, so I was calling the disableEditing method, but this does not work.
I am just doing this :
$('#dg').edatagrid('disableEditing');
What am I doing wrong?
How do I disable the edition on the entire grid ?
Thanks,
Melanie
Logged
melane
Newbie
Posts: 14
Re: edatagrid disableEditing
«
Reply #1 on:
June 23, 2013, 10:40:15 PM »
Actually I figure this out, I need to call the disableEditing each time data is reloaded. So I called it in the on onLoadSuccess call back
$('#dg').edatagrid({
columns:columns,
url: 'myrl',
onLoadSuccess : function(data){
//check my data confition : for now always disable edition...
$('#dg').edatagrid('disableEditing');
}
});
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...