Welcome Guest Search | Active Topics | Sign In | Register

GRid ..Column Width..Stylesheet Options
Marquel
Posted: Monday, March 30, 2009 12:23:17 AM
Rank: Member
Groups: Member

Joined: 7/22/2007
Posts: 10
What is the easiet way to set a Gid column's width utilizing a style sheet (CSS) or javascript, please include sample code, thanks

eo_support
Posted: Monday, March 30, 2009 8:51:29 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to take a look of the Grid documentation first. Our Grid is a quite advanced Grid control so it will take more than a few words to explain:

http://doc.essentialobjects.com/library/1/grid/start.aspx

There are also a large collection of samples available in the sample package. You can view it online at here:

http://demo.essentialobjects.com/Default.aspx?path=Grid

Both the documentation and samples are also available on your local machine once you install our product. Please feel free to let us know if you still have questions after you go over those.

Thanks!
Marquel
Posted: Monday, March 30, 2009 3:44:17 PM
Rank: Member
Groups: Member

Joined: 7/22/2007
Posts: 10
Ok, the issue I'm haiving is trying to get the grid to fill (resize) out a table instead of having to manully set the width...do I have to use a Splitter control to make the Grid fill out the entire area...width -wise.?


thanks

MU
eo_support
Posted: Monday, March 30, 2009 3:49:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can use this function to resize a Grid column:

http://doc.essentialobjects.com/library/1/jsdoc.public.gridcolumn.setwidth.aspx

The code will be something like this:

Code: JavaScript
eo_GetObject("Grid1").getColumn(0).setWidth(100);


You will not be able to set the Grid column's size with CSS.

Thanks!
Marquel
Posted: Monday, March 30, 2009 3:52:44 PM
Rank: Member
Groups: Member

Joined: 7/22/2007
Posts: 10
gotcha...thanks...

MU


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.