How to invoke the row click and row highlight function

HI Alex,

I have a grid which I use to show search results. Now if the search returns only one record I wish to highlight the grid row and also wish to invoke the click event on this row.

How can I achive this. Please Help...
Binu Nadesan
April 15,
Hi, Binu.

I'm currently evaluating the product to be put in place into our web application. These control has proven to be quite resilient.

These are snips of code that I'm using.

Row highlighting:
var srchGrid = new Active.Controls.Grid;
var row = new Active.Templates.Row;
row.setEvent("onmouseover", "mouseover(this, 'active-row-highlight')");
row.setEvent("onmouseout", "mouseout(this, 'active-row-highlight')");
srchGrid.setTemplate("row", row);

Click event:
srchGrid.setAction("click", function(src){alert(src)} );

If anyone has a better way of performing these tasks, please let me know.
Stephane, www.omni-ts.com
April 18,
<tr onMouseOver="this.bgColor = '#C0C0C0'" onMouseOut ="this.bgColor = '#FFFFFF'" bgcolor="#FFFFFF">
May 25,

This topic is archived.

See also:

Back to support forum


Version 2

Looking for AW 2.6 ?
The old site is here.