3.2.0

Doesn't work setRowCount with XML

Hello!

This is a problem:
var table = new AW.XML.Table;

table.setURL("basic1.xml");
table.request();

var myHeader0 = ["Ticker", "Company Name", "Market Cap.", "$ Sales", "Employees"];
var myHeader1 = ["alma", "", "", "", ""];

var obj = new AW.Grid.Extended;

obj.setCellModel(table);

obj.setHeaderCount(2);
obj.setHeaderText(myHeader0,0);
obj.setHeaderText(myHeader1,1);

obj.setColumnCount(5);
obj.setRowCount(1);
Zsomika
December 18,
To fix your code you must use synchronous request -

table.setAsync(false);

http://www.activewidgets.com/aw.http.request/async.html

Otherwise the row count is overwritten when the data arrives.
Alex (ActiveWidgets)
January 6,

This topic is archived.

See also:


Back to support forum