3.2.0

Delay loading the grid object.

Alex,

Normal loading of the grid occurs within a <script> tag and calling document.write(). This works but I'd like to render the grid control via AJAX.
This is easily done using normal HTML elements by writing to a DIVs innerHTML. EG: divElement.innerHTML = "<input type='text' />".

How can I do the same sort of thing with the grid control?
Once the document is finished loading you are not supposed to call the write or writeln methods.

I have tried using document.createElement("scirpt"); and appending the script element to a DIV but no luck.

Thanks
Matt
March 17,
All AW objects produce html via toString() method, so you can write

var obj = new AW.UI.Grid;
...
divElement.innerHTML = obj;
Alex (ActiveWidgets)
March 18,
Thanks. So simple..
Matt
March 18,

This topic is archived.

See also:


Back to support forum