EasyUI Forum
March 29, 2024, 02:31:26 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: Datalist columns header doesn't support width setting  (Read 7204 times)
y.bykov
Newbie
*
Posts: 49


View Profile
« 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.
« Last Edit: May 04, 2017, 06:46:49 AM by y.bykov » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
Logged
y.bykov
Newbie
*
Posts: 49


View Profile
« Reply #2 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>).
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 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}
]]
})
Logged
y.bykov
Newbie
*
Posts: 49


View Profile
« Reply #4 on: May 04, 2017, 08:24:29 PM »

It is exactly I need.
Thank you!
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!