|
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
|
|
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!
|
|
Rank: Member Groups: Member
Joined: 10/25/2009 Posts: 26
|
Thanks work perfectly!!!! ;)
|
|