Using scrollIntoView
Hi all,
This looks like a great solution to a problem I'm having but my "layout" doesn't return anything for:
<code>
var data = this.getTemplate("layout").getContent("data");
var left = this.getTemplate("layout").getContent("left");
var scrollbars = this.getTemplate("layout").getContent("scrollbars");
</code>
That´s to say that the variables data, left, and scrollbars all result undefined.
I'm using AW.UI.Grid and buid it in the following manner:
<code>
var gridObj= new AW.UI.Grid;
var table = new AW.XML.Table;
var dataName = name + "Data";
var xmlNode = document.getElementById(dataName);
var xmlString = xmlNode.innerHTML;
table.setXML(xmlString);
gridObj.setId(name);
gridObj.setColumnCount(columnHeader.length);
gridObj.setRowCount(rowCount);
gridObj.setHeaderText(columnHeader);
gridObj.setCellModel(table);
gridObj.setSelectionMode("single-row");
gridObj.setSelectorVisible(true);
gridObj.refresh();
</code>
Can anybody shed some light? AW Versión is 2.5.1
Thanks in advance.
This looks like a great solution to a problem I'm having but my "layout" doesn't return anything for:
<code>
var data = this.getTemplate("layout").getContent("data");
var left = this.getTemplate("layout").getContent("left");
var scrollbars = this.getTemplate("layout").getContent("scrollbars");
</code>
That´s to say that the variables data, left, and scrollbars all result undefined.
I'm using AW.UI.Grid and buid it in the following manner:
<code>
var gridObj= new AW.UI.Grid;
var table = new AW.XML.Table;
var dataName = name + "Data";
var xmlNode = document.getElementById(dataName);
var xmlString = xmlNode.innerHTML;
table.setXML(xmlString);
gridObj.setId(name);
gridObj.setColumnCount(columnHeader.length);
gridObj.setRowCount(rowCount);
gridObj.setHeaderText(columnHeader);
gridObj.setCellModel(table);
gridObj.setSelectionMode("single-row");
gridObj.setSelectorVisible(true);
gridObj.refresh();
</code>
Can anybody shed some light? AW Versión is 2.5.1
Thanks in advance.
Bill
June 2,