:: Forum >>

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
Friday, April 15, 2005
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
Monday, April 18, 2005
<tr onMouseOver="this.bgColor = '#C0C0C0'" onMouseOut ="this.bgColor = '#FFFFFF'" bgcolor="#FFFFFF">
Malaysia
Thursday, May 25, 2006

This topic is archived.


Back to support forum

Forum search