|
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
|
|
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!
|
|
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!
|
|