3.0.5

Toggle display style

Hi everybody,

I have two grids. I would like to toggle display style second grid when it receives a click on image.

So far I tried to do something like --

In my first grid =

["<img src='images/online_error_over_nb.gif' >",
"test Job 1",
"Test Job",
"5050010000000001",
"<a title='View Details' href='javascript:show_details(data1,d1);'><img src='images/plus.gif' name='d1' border='0'></a>"
]

is a row sample for first grid.
Here is the code --
var link = new Active.Templates.Link;
// link.setAttribute("target", "_blank");
link.setAttribute("href", function show_details(e,i_m)
{
obj2.setStyle("display", "none");
obj2.refresh();
});
obj1.setColumnTemplate(link, 5);

Ofcourse, second grid id made invisible at loadtime.

Can somebody help. I am new user for ActiveWidget and decided to use it wherever is possible. I know it's simple but cann't do it.

Thanks for your help.

s_r
July 14,

This topic is archived.

See also:


Back to support forum