EasyUI Forum

General Category => Bug Report => Topic started by: y.bykov on May 04, 2017, 06:35:53 AM



Title: Datalist columns header doesn't support width setting
Post by: y.bykov on May 04, 2017, 06:35:53 AM
When I try to set
{showHeader:true, fitColumns:false, columns:columns_with_width_setting_conf}
datalist column header doesn't change size width.


Title: Re: Datalist columns header doesn't support width setting
Post by: stworthy on May 04, 2017, 08:23:35 AM
If you want to display the datalist header, it acts as the datagrid. Please use the datagrid component instead.


Title: Re: Datalist columns header doesn't support width setting
Post by: y.bykov on May 04, 2017, 10:32:49 AM
I can't find how to switch on checkbox field in datagrid when it create only programmaticaly (only <div id="my_id"></div>).


Title: Re: Datalist columns header doesn't support width setting
Post by: stworthy on May 04, 2017, 06:07:18 PM
The datagrid component can be created programmatically. Please look at this code:
Code:
$('#dg').datagrid({
width: 600,
url: ...,
frozenColumns: [[{field:'_ck',checkbox:true}]],
columns: [[
{field:'text',title:'Name',width:200}
]]
})


Title: Re: Datalist columns header doesn't support width setting
Post by: y.bykov on May 04, 2017, 08:24:29 PM
It is exactly I need.
Thank you!