:: Forum >>

Basic load from in-memory XML Doc

I am just evaluating and could not find satisfactory answers to this when searching the forums.

We have intranet AJAX apps where we are already retrieving and manipulating data with XML Documents. What are the very basics of taking an in-memory XML document and displaying it in the ActiveWidgets grid using the syntax of the newest version.

We would certainly explore all of the other features if we choose to purchase the licensed version, but primarily I am interested in the frozen header while scrolling feature. Other solutions we have tried have all been "lacking" to say the least.

Rick Brandt
Monday, August 28, 2006
You should have the code similar to


or other XML examples in the /examples/old/ directory.

If your XML doc is already in memory then instead of requesting the data -


you should 'simulate' the response call passing your XML document -


This should be done after assigning the table as grid datasource -

var obj = new AW.UI.Grid;
var table = new AW.XML.Table;
table.setColumns([...]); // set columns XPath
table.response(XML); // pass XML doc
Alex (ActiveWidgets)
Tuesday, August 29, 2006
What is the difference between using setXML and calling .response directly on the table object?
Karl Thoroddsen
Saturday, September 2, 2006
response() method calls setXML() and then clears grid scroll, selection, sort and row order and sets row count (see /source/lib/xml/table.js).
Alex (ActiveWidgets)
Monday, September 4, 2006

This topic is archived.

Back to support forum

Forum search