Title: Frozen Columns in edatagrid
Post by: Punkerr on October 29, 2012, 03:00:21 PM
Hi, I tried frozen columns with edatagrid, but not success: <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??
Title: Re: Frozen Columns in edatagrid
Post by: stworthy 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.
|