EasyUI Forum
May 10, 2024, 01:36:24 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: edatagrid disableEditing  (Read 7276 times)
melane
Newbie
*
Posts: 14


View Profile
« 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


View Profile
« 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  
 
Jump to:  

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