dhtmlxGrid / Is it possible to put "active object" in the fo

Hi,



I’d like to know if it is possible to put something like a radio-button (containing a onclick action, atc) in a footer of a grid, created with “attachFooter(…)’.



I’ve tried something like:

"

grid.attachFooter(”#cspan, aText
");



"

for example…

Is there soemthing else particular to do ?



Thanks

Regards.

Actually you can use any HTML based content in footer|header of grid. The code which you have used contains valid HTML code, but colspan placed incorrectly, the valid one will be.

grid.attachFooter(“aText,#cspan”);

Hi,

Thanks for your fast answer, it seems that I haven’t understood correctly the use/syntax of this function, now it begins to work.
One more thing -> the function called by “onclick” event contains parameters, which means that there are ‘,’ in “prototype” of the function; the result is that the ‘,’ are interpreted as a new “column” in the footer.
Is there a particular solution, or should I have to change the way I call the function ?
Thanks,
Regards.

Is there a particular solution, or should I have to change the way I call the function ?
You can use array instead of comma separated string
grid.attachFooter(["#cspan",“aText , b , c
]);

Hi,
Thanks again, the problem is solved by using the “[”  “]” for the items of the footer.

Regards.