Welcome Guest Search | Active Topics | Sign In | Register

Grid and CustomColumn Options
tommyleo
Posted: Friday, November 20, 2009 6:04:00 PM
Rank: Member
Groups: Member

Joined: 10/25/2009
Posts: 26
My problem is this (always sorry for my english) :

I want to customize a cell (for example BOLD), if the value of another cell is for example "1"

Do you have some tips ?

Thx

p.s.
I have try with on_column_gettext, on the column that i want customize, but how I can get with javascript the value of another column ?

Code: JavaScript
function on_column_gettext(column, item, cellValue)
{
    if (cellValue == 1)   
        return ...........;
}
eo_support
Posted: Friday, November 20, 2009 6:53:55 PM
Rank: Administration
Groups: Administration

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

You would do something like this:

Code: JavaScript
if (item.getCell(x).getValue() == "something")
    return ......;


Where x is the index of the column you wish to check.

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.