EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on July 08, 2014, 10:32:19 PM



Title: How to disable checkAll header in Datagrid?
Post by: aswzen on July 08, 2014, 10:32:19 PM
..
i want to know how to disable checkAll feature in easyui datagrid that appear on datagrid header?...
atleast just how to remove it?

thanks in advance...

thanks stworthy



Title: Re: How to disable checkAll header in Datagrid?
Post by: stworthy on July 09, 2014, 01:49:01 AM
Please try the code below:
Code:
$('#dg').datagrid('getPanel').find('div.datagrid-header input[type=checkbox]').attr('disabled','disabled');


Title: Re: How to disable checkAll header in Datagrid?
Post by: aswzen on July 16, 2014, 07:01:11 PM
not working...the checkall check-box still enabled


Title: Re: How to disable checkAll header in Datagrid?
Post by: varonica on July 16, 2014, 07:17:30 PM
Please try the following:

Code:
$('#dg').datagrid({
onLoadSuccess:function(data){
$('#dg').datagrid('getPanel').find('div.datagrid-header input[type=checkbox]').attr('disabled','disabled');
}
});


Title: Re: How to disable checkAll header in Datagrid?
Post by: aswzen on July 16, 2014, 07:31:19 PM
Worked ! thanks :)