Welcome Guest Search | Active Topics | Sign In | Register

Grid ButtonColumn Options
tommyleo
Posted: Wednesday, January 6, 2010 3:29:44 PM
Rank: Member
Groups: Member

Joined: 10/25/2009
Posts: 26
It is possible to change the style of the Button from clientside ?

Code: JavaScript
function grid_item_command(grid, itemIndex, colIndex, commandName) {
        myItem = grid.getItem(itemIndex);
        myCell = myItem.getCell(colIndex);
        myCell.overrideStyle("cell_but_sel");
    }


I try with overrideStyle, but I can change the style of the cell, but the button no!!

Thx

eo_support
Posted: Wednesday, January 6, 2010 5:29:30 PM
Rank: Administration
Groups: Administration

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

Try to define your style as:

Code: CSS
.cell_but_sel input
{
 .....
}


This way when you call overrideStyle("cell_but_sel"), the style is applied to all input elements that are descendant of the Grid cell, which would be the buttons.

Thanks!
tommyleo
Posted: Thursday, January 7, 2010 8:35:25 AM
Rank: Member
Groups: Member

Joined: 10/25/2009
Posts: 26
Thanks work perfectly!!!! ;)


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.