0

Grid Live Data Problem

asked 2008-11-12 19:26:20 +0800

jyluo gravatar image jyluo
147 1 1

I found that "height=100%" does not have any effect on a grid if the grid is using a live ListModel. In other words, if you declare "height=100%", the grid's height will ALWAYS stretch to include ALL rows in the ListModel and load them at once (thus the "live" part is gone). You MUST declare something like "height=300px" to effectively use live data. Is this a bug?

delete flag offensive retag edit

3 Replies

Sort by » oldest newest

answered 2008-11-13 00:49:30 +0800

flyworld gravatar image flyworld
155 3

this is not a bug, this is spec issue.

link publish delete flag offensive edit

answered 2008-11-17 19:39:14 +0800

jyluo gravatar image jyluo
147 1 1

Why it's not a bug? According to CSS specification height="100%" means the element's height should equal to the height of its container. It does NOT mean the element should compute the height in its own way.

link publish delete flag offensive edit

answered 2008-11-18 01:09:52 +0800

flyworld gravatar image flyworld
155 3

The "live" part can be created in a fixed parent, if you wanna set it "100%", you MUST add vflex="true" to it.
then the "live" show again

<listbox id="list" width="200px" height="100%" model="${myModel}" vflex="true">

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: 2008-11-12 19:26:20 +0800

Seen: 173 times

Last updated: Nov 18 '08

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