EasyUI Forum

General Category => Bug Report => Topic started by: aswzen on September 03, 2015, 03:08:36 AM



Title: [BUG] Datagrid Column inside a tab rendered oddly when inserting
Post by: aswzen on September 03, 2015, 03:08:36 AM
Here the fiddle : http://jsfiddle.net/aswzen/tjf9jta9/

this apparently looks like a bug

(http://i.imgur.com/onK9cXD.jpg)

Just press the Insert button you will see that the column width size will not follow the content width size

Thank you in advance
 :-[


Title: Re: [BUG] Datagrid Column inside a tab rendered oddly when inserting
Post by: stworthy on September 03, 2015, 06:13:30 PM
You haven't defined 'width' property on columns. Please define it or call 'fixColumnSize' method after inserting a new row.
Code:
$('#dg').datagrid('insertRow',{
    index: 0,
    row:  {
itemid: 'Krueszack Lens',
productid: 30,
listprice: '132000',
unitcost: '200000',
attr1: 'None',
status: 'OK Go On, Long text Absolutely'
}
});
$('#dg').datagrid('fixColumnSize');

http://jsfiddle.net/tjf9jta9/1/