Frank wrote:It would be difficult to post the complete code to reproduce the problem and anyway, it is not where my real issue resides.
It is important that you always tell us the "real issue". The test code you posted works fine here, that's why it took a long time for us to respond. We tried this and that and it all worked perfectly fine.
Frank wrote:In other words, the real issue is about not to be able to define the height of the Grid in Percentage.
100% works fine but anything lesser than 100% results in a 0% tall grid.
Grid does not support percentage height except for 100%. Percentage height has very little pratical usage for several reasons:
1. For most page layout, width always takes precedence over height;
2. Many HTML elements, such as form element, takes full width but zero height by default. Try the following HTML code:
Code: HTML/ASPX
<form>
<div style="width:50%;height:50%;background-color:blue">
</div>
</form>
You will see the blue div fills half the page width but only the height of one line of text. Theoretically the height should be zero since "form" has zero height. It is shown as one line of text because it is assumed that the div should be able to accommodate some text.
Because Grid still supports 100%, it is possible to support any percentage by place an DIV outside of it and set any percentage you would like on that div. This simple workaround has the same effect of being able to support arbitrary percentage height on the Grid itself.
Thanks