Welcome Guest Search | Active Topics | Sign In | Register

Web Grid Control - More Info Options
Frank
Posted: Tuesday, May 6, 2008 8:17:24 AM
Rank: Member
Groups: Member

Joined: 5/2/2008
Posts: 16
Also, if that can help, I found out that if I put the Grid control inside a <DIV>, the height of the <DIV> will be "locked" with the height of the Grid Control.

For example:

<div id="pagecontent" class=""PageContent">
<eo:Grid ID="Grid1" runat="server" .... Height="400px" Width="300px" ....>
....
....
</eo:Grid>
</div>

Where PageContent CSS is:

.PageContent
{
height: 550px;
width: 600px;
}

Will result in a <div> of 400px (instead of 550px) by 600px (width is correct) containing a Grid control of 400px by 300px.

Is this normal behavior? Is there a work around?
Thanks,

Frank
eo_support
Posted: Tuesday, May 6, 2008 9:13:07 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi Frank,

We will look into that. Next time when you have similar questions, please post in the "Support" forum. "Feature Request & Feedbacks" is more about new and missing features. :)

Thanks!
eo_support
Posted: Tuesday, May 13, 2008 12:13:15 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi Frank,

We looked into the issue and we do not see the same behavior. Can you post a complete page that reproduces the problem?

Thanks
Frank
Posted: Tuesday, May 13, 2008 2:23:15 PM
Rank: Member
Groups: Member

Joined: 5/2/2008
Posts: 16
Hi,

It would be difficult to post the complete code to reproduce the problem and anyway, it is not where my real issue resides.
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.

Frank
eo_support
Posted: Tuesday, May 13, 2008 3:01:24 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.