EasyUI Forum

General Category => General Discussion => Topic started by: devnull on October 05, 2018, 05:55:59 PM



Title: getting the autosize width value for width
Post by: devnull on October 05, 2018, 05:55:59 PM
How can I get the width of the columns after they have been autosized as I would like to save this value as the defaults for the datagrid ?

Thanks



Title: Re: getting the autosize width value for width
Post by: jarry on October 06, 2018, 05:31:32 AM
Try this code:
Code:
var field = ...
var col = $('#dg').datagrid('getColumnOption', field);
console.log(col.width)