EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 13, 2025, 10:03:54 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
>
EasyUI for jQuery
>
When I hideColumn and showColumn in datagrid, the column's width become confused
Pages: [
1
]
« previous
next »
Print
Author
Topic: When I hideColumn and showColumn in datagrid, the column's width become confused (Read 8696 times)
joker
Newbie
Posts: 17
When I hideColumn and showColumn in datagrid, the column's width become confused
«
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
Re: When I hideColumn and showColumn in datagrid, the column's width become confused
«
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
Re: When I hideColumn and showColumn in datagrid, the column's width become confused
«
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
Re: When I hideColumn and showColumn in datagrid, the column's width become confused
«
Reply #3 on:
April 13, 2016, 10:47:47 PM »
Does anyone can help?
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...