Welcome Guest Search | Active Topics | Sign In | Register

DataGrid: Setting cell backgroundcolor via javascript Options
Felix Weinraub
Posted: Friday, March 27, 2009 12:52:27 PM
Rank: Member
Groups: Member

Joined: 1/5/2009
Posts: 27
I've got a EO.Grid, that is filled via sql-request. It's possible to set the color of a selected cell via javascript?
FullRowMode is true.

function gridColor() {
//Get the grid object
var grid = eo_GetObject("Grid2");
var datagridrow = grid.getItem(4);
var datagridcell = datagridrow.getCell(3);

// works **************
//alert(datagridcell.getValue());
// works **************

//Change background-color of cell
datagridcell.backgroundColor = 'black';
}

As a test the function reports the error "object doesn't support this property or method.


eo_support
Posted: Friday, March 27, 2009 12:57:00 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,358
Unfortunately no. I do not think you can do that in the current version. Hopefully we can add this in the future version though.

Thanks!
Felix Weinraub
Posted: Thursday, April 9, 2009 3:54:53 AM
Rank: Member
Groups: Member

Joined: 1/5/2009
Posts: 27
Thanks for the reply. I come now to respond. it would be nice to have this feature, since I've used it often.
eo_support
Posted: Thursday, April 9, 2009 9:27:15 AM
Rank: Administration
Groups: Administration

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

This is still not implemented yet. Sorry about it!

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.