EasyUI Forum
September 13, 2025, 12:24:58 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: When I hideColumn and showColumn in datagrid, the column's width become confused  (Read 8697 times)
joker
Newbie
*
Posts: 17


View Profile Email
« on: April 09, 2016, 05:38:48 AM »

I have a datagrid which fitColumns is ture and fit is ture and all columns have equal width,
but after I use showColumn and hideColumn; the rest columns's width become confused.
I have used fitColumns and resize method,but i doesn't work.
any suggestions?
thanks.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 09, 2016, 08:03:20 PM »

That has no problems according to the 'fitColumns' logic. When you set 'fitColumns' to true, all the visible column width will be adjusted to full fill all the datagrid width. When you call 'hideColumn' method to hide some special columns, the left visible columns will be adjusted again. They will become wider than before.
Logged
joker
Newbie
*
Posts: 17


View Profile Email
« Reply #2 on: April 11, 2016, 04:41:52 AM »

Thanks for your reply,I set all columns width to 50,In my option,all columns  should have same width.before I change columns,It's OK.But after I use showColumn and hideColumn; the rest columns's width become confused, some columns become wider and some columns become narrower.
It is strange.
How can I make the rest columns still have same width?

PS. it seems if i just hideColumn , It's OK. but if I hideColumn  and showColumn together,  It's wrong.
« Last Edit: April 11, 2016, 05:27:43 AM by joker » Logged
joker
Newbie
*
Posts: 17


View Profile Email
« Reply #3 on: April 13, 2016, 10:47:47 PM »

Does anyone can help?
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!