0

Grid auto-width problem

asked 2011-09-05 11:00:05 +0800

TheAce gravatar image TheAce
69

Ive found in the forum that we can use the following to have the grid with auto width..

<style >
.z-grid-body table,.z-grid-header table{ width: auto;}
</style>

Unfortunately this makes the 'column freeze' and 'row freeze' to stop working...

Anyone would know a eazy way to make this work with the row freeze and column freeze ?

Thanks

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-09-05 11:20:59 +0800

TheAce gravatar image TheAce
69

I've found a possible solution but... i have a small problem (when i have drag and drop enabled on some of the columns and it would refresh the entire grid)


with the following applied :

You can specify hflex to grid and vbox, and remove width="100%"

<vbox hflex="1">
<grid hflex="1"

It does works way better, but I have the same problem when I use drag & drop ...

Thanks

link publish delete flag offensive edit

answered 2011-09-05 12:31:01 +0800

TheAce gravatar image TheAce
69

Actually, i found that in some cases it works with the hflex/vflex but when i do drag & drop or a click on a certain button even if i do myGrid.setModel(myNewListmodel); the Grid does not get "invalidated" i believe.. and therefore the grid display is not good.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-09-05 11:00:05 +0800

Seen: 231 times

Last updated: Sep 05 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More