EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: thecyberzone on February 01, 2015, 10:21:53 AM



Title: How to display Title in checked column in a datagrid
Post by: thecyberzone on February 01, 2015, 10:21:53 AM
If a column in a datagrid is defined as checked:true then a checkbox is also appear in Header row as Title, and if anybody enable that checkbox all checkbox in all rows will be selected.

Now if I want not to display that checkbox in Header row as Title, so that selection of all checkbox in all rows cannot be done at a time what should I do. I have tried by adding a title option as title:'Final', but nothing happened. Please let me know what to do to display a Title as well as to suppress the checkbox in Header Row.

Thanks in advance.


Title: Re: How to display Title in checked column in a datagrid
Post by: stworthy on February 01, 2015, 06:18:24 PM
Please try this:
Code:
var h = $('#dg').datagrid('getPanel').find('div.datagrid-header div.datagrid-header-check');
h.html('<span style="font-size:12px">Final</span>')


Title: Re: How to display Title in checked column in a datagrid
Post by: thecyberzone on February 01, 2015, 09:30:56 PM
Ok, I got it.

Thanks stworthy for your suggestion.


Title: Re: How to display Title in checked column in a datagrid
Post by: proceno72 on May 20, 2015, 02:43:23 AM
That's ok. I think for best visual result it should be
Code:
var h = $('#dg').datagrid('getPanel').find('div.datagrid-header div.datagrid-header-check');
h.removeClass('datagrid-header-check');
h.addClass('datagrid-cell');
h.html('<span>Final</span>')


Title: Re: How to display Title in checked column in a datagrid
Post by: MB34 on July 03, 2015, 02:47:59 PM
If I have more than one, how would I set the header title to the one for the corresponding column title?


Title: Re: How to display Title in checked column in a datagrid
Post by: MB34 on July 10, 2015, 10:41:56 AM
stworthy,
Could you help out on this one?


Title: Re: How to display Title in checked column in a datagrid
Post by: stworthy on July 10, 2015, 04:47:50 PM
Hi MB34, please describe your question clearly.