How to select (or paint highlight) a row whitout user click (simulate click)
I have defined function that onClick fill a input field of my web form.
my function work correctly but the highligh color not appear in spite of a time before that i set the new Action for onClick, it was works well and it was washing well the highlight color.
my grid definition:
var grid = new Active.Controls.Grid;
...
var row = new Active.Templates.Row;
...
row.setEvent("onclick", function () {this.action("clickAction") ; });
...
grid.setAction("clickAction", gestionInternaClick);
...
var gestionInternaClick =
function (src)
{
var indexRowSelected;
indexRowSelected = src.getProperty("item/index");
eval("var functionExist = typeof gestionClickGrid__" + _grid_nombre + " == 'function';");
if(functionExist )
{
gestionClickGrid(getIdRow(grid,indexRowSelected));
}
};
...
function gestionClickGrid(indexRowSelected)
{
document.forms[0].idSeleccionGrid.value=indexRowSelected;
}
I Need Help, Thank You.
my function work correctly but the highligh color not appear in spite of a time before that i set the new Action for onClick, it was works well and it was washing well the highlight color.
my grid definition:
var grid = new Active.Controls.Grid;
...
var row = new Active.Templates.Row;
...
row.setEvent("onclick", function () {this.action("clickAction") ; });
...
grid.setAction("clickAction", gestionInternaClick);
...
var gestionInternaClick =
function (src)
{
var indexRowSelected;
indexRowSelected = src.getProperty("item/index");
eval("var functionExist = typeof gestionClickGrid__" + _grid_nombre + " == 'function';");
if(functionExist )
{
gestionClickGrid(getIdRow(grid,indexRowSelected));
}
};
...
function gestionClickGrid(indexRowSelected)
{
document.forms[0].idSeleccionGrid.value=indexRowSelected;
}
I Need Help, Thank You.
Eduardo Serrano Luque
August 24,