Title: When I hideColumn and showColumn in datagrid, the column's width become confused Post by: joker 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. Title: Re: When I hideColumn and showColumn in datagrid, the column's width become confused Post by: stworthy 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.
Title: Re: When I hideColumn and showColumn in datagrid, the column's width become confused Post by: joker 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. Title: Re: When I hideColumn and showColumn in datagrid, the column's width become confused Post by: joker on April 13, 2016, 10:47:47 PM Does anyone can help?
|