EasyUI Forum
September 14, 2025, 01:55:29 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: Frozen Columns in edatagrid  (Read 10095 times)
Punkerr
Newbie
*
Posts: 37


View Profile
« on: October 29, 2012, 03:00:21 PM »

Hi,

I tried frozen columns with edatagrid, but not success:

Code:
	<table id="dg" title="Planner" style="margin:0 auto" toolbar="#toolbar" pagination="true" idField="id" url="get.php" iconCls="icon-table" rownumbers="true" fitColumns="true" singleSelect="true">
<thead frozen="true">  
<tr>
<th field="article" width="30">Article</th>
<th field="artdescription" width="110">Description</th>
<th field="client" width="30">Client</th>
<th field="category" width="30">Category</th>
<th field="qty" width="15" align="right">Total</th>
<th field="stock" width="15" align="right">Stock</th>
<th field="diferences" width="15" align="right" formatter="cantNegative">Diferences</th>
</tr>
</thead>
<thead>  
<tr>
<th field="a102" width="15" editor="{type:'numberbox',options:{required:true,precision:0,min:0,max:10}}" align="right">A102</th>
<th field="a104" width="15" editor="{type:'numberbox',options:{required:true,precision:0,min:0,max:10}}" align="right">A104</th>
<th field="a105" width="15" editor="{type:'numberbox',options:{required:true,precision:0,min:0,max:10}}" align="right">A105</th>
<th field="a109" width="15" editor="{type:'numberbox',options:{required:true,precision:0,min:0,max:10}}" align="right">A106</th>
<th field="a110" width="15" editor="{type:'numberbox',options:{required:true,precision:0,min:0,max:10}}" align="right">A110</th>
<th field="a111" width="15" editor="{type:'numberbox',options:{required:true,precision:0,min:0,max:10}}" align="right">A111</th>
<th field="a116" width="15" editor="{type:'numberbox',options:{required:true,precision:0,min:0,max:10}}" align="right">A116</th>
</tr>
</thead>
</table>

Question: edatagrid supports frozen columns??
« Last Edit: October 29, 2012, 03:33:41 PM by Punkerr » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 30, 2012, 01:00:28 AM »

Notice that you set 'fitColumns' property to true, this will make the datagrid expand/contract the size of the columns to fit the grid width and prevent horizontal scrolling. If the datagrid has the 'fitColumns' property set to true, it don't need to have the frozen columns again.
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!