EasyUI Forum
May 14, 2024, 05:25:55 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: getting the autosize width value for width  (Read 4410 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« 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: 2264


View Profile Email
« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!