Welcome Guest Search | Active Topics | Sign In | Register

Client-side grid resize Options
infoland
Posted: Wednesday, May 30, 2012 7:34:04 AM
Rank: Member
Groups: Member

Joined: 11/15/2011
Posts: 24
Hello,

I'm wondering which is the right way to resize a client-side grid, in a javascript.
The grid has been initially sized to display less lines than total items, so a vertical scrollbar appears.
I'd want to trigger a javascript increasing grid's height, avoiding page postback to rebuild the whole grid.
I tried this simple jquery script but it didn't work:

Code: JavaScript
$('#' + gridClientId).height(newHeight);


The effect that the above code seems to produce, is to widen the height of a div element containing the actual grid, but not the grid itself.

I hope someone could help me.

Thanks.

Raf

eo_support
Posted: Wednesday, May 30, 2012 9:51:54 AM
Rank: Administration
Groups: Administration

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

You need to use our client side JavaScript interface to work with our Grid. The Grid is not a single DHTML element so you can not treat it as such.

See here for more details about our JavaScript interface:

http://www.essentialobjects.com/doc/1/clientapi_howto.aspx

Thanks!
infoland
Posted: Wednesday, May 30, 2012 10:14:10 AM
Rank: Member
Groups: Member

Joined: 11/15/2011
Posts: 24
Yeah, I've looked into Grid's Client APIs, but I missed the base Control methods:

http://www.essentialobjects.com/doc/1/jsdoc.public.control.setheight.aspx

It worked like a charm!

Thanks again

Raf


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.