Welcome Guest Search | Active Topics | Sign In | Register

eo:Grid cell width could be in percentage Options
Milano
Posted: Tuesday, April 11, 2017 1:19:19 PM
Rank: Newbie
Groups: Member

Joined: 10/20/2016
Posts: 3
I started to work width a project of a client. They use the component "eo:Grid" to show data.
I'm trying to find out if there is a way to make the cell widths em percentage.

I changed this:
<eo:StaticColumn HeaderText="Empregados" AllowSort="True"
DataField="NomeEmpregado" Name="NomeEmpregado" ReadOnly="True"
SortOrder="Ascending" Text="" Width="330">

To this:
<eo:StaticColumn HeaderText="Empregados" AllowSort="True"
DataField="NomeEmpregado" Name="NomeEmpregado" ReadOnly="True"
SortOrder="Ascending" Text="" Width="50%">

But there was an erros with the percentage. I didn't acept it.

I'm using a responsive layout. Everything is ok, but the grid.

Is there a new responsive version of Essential Objects?

Is there a workaround?

Thanks
eo_support
Posted: Tuesday, April 11, 2017 1:22:33 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hello,

Unfortunately that is not supported yet. The only thing you can do is to set the GridColumn's width to -1, that way it will automatically fill all the remaining space. But it does not support percentage width. Sorry about it!

Thanks!
Milano
Posted: Tuesday, April 11, 2017 3:28:40 PM
Rank: Newbie
Groups: Member

Joined: 10/20/2016
Posts: 3
Thank you for your answer. Although it's not what the project really needed, It will help us a lot.
At least, the grid won't be too thin (leaving an empty white space at right) nor too large (creating horizontal scrollbars)

Have a nice day!


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.