3.2.0

Why doesn't this work!!!?? going crazy

Hello, this is a grid that loads the info from a XML file. The problem is that it doesn't apply the LINK template to the column. Here is the code:

<body>
<script>
var myLinks = function(column, row){
return "#" + row;
}

var table = new AW.XML.Table;
table.setURL("XmlFile.php?rand="+Math.random());
table.request();

var obj = new AW.UI.Grid;
obj.setColumnCount(5);
obj.setCellModel(table);

obj.setCellLink(myLinks);
obj.setCellTemplate(new AW.Templates.Link, 0);

document.write(obj);
</script>

</body>
Stewie
April 9,
http://www.activewidgets.com/javascript.forum.9812.5/setcelllink-in-2-0.html
Stewie
April 9,
The problem might be that the cell link is cleared when the XML responce arrives. Try adding getLink method to the table object -

table.getLink = function(column, row){
return "#" + row;
}
Alex (ActiveWidgets)
April 10,

This topic is archived.

See also:


Back to support forum