EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 08, 2024, 02:45:04 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
getting the autosize width value for width
Pages: [
1
]
« previous
next »
Print
Author
Topic: getting the autosize width value for width (Read 5124 times)
devnull
Sr. Member
Posts: 431
getting the autosize width value for width
«
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
Logged
-- Licensed User --
jarry
Administrator
Hero Member
Posts: 2273
Re: getting the autosize width value for width
«
Reply #1 on:
October 06, 2018, 05:31:32 AM »
Try this code:
Code:
var field = ...
var col = $('#dg').datagrid('getColumnOption', field);
console.log(col.width)
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...