I'm trying to bind dataset to WebHierarchicalDataGrid. Code is working fine. It will bind dataset to datagrid however on webpage I don't see anything and getting javascript error : " Microsoft JScript runtime error: 'length' is null or not an object".
for (var i = startIndex; !returnRow && i < rows.length; i++) {
var rowElem = rows[i];if (rowElem.getAttribute("type") != "rowIsland" && rowElem.getAttribute("adr") !== null){Var adr = parseInt(rowElem.getAttribute("adr")); if (!this._rows[adr]) this._rows[adr] = this._create_item(rowElem.rowIndex);
//this._rows[adr] = this._addObject($IG.ContainerGridRow,rowElem,adr);
if(adr == index) returnrow = this._rows[adr];}}
However, when I click on source code of webpage I can see data being populated.
< ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid_Changes" runat="server" AutoGenerateBands="true" AutoGenerateColumns ="true" Width="100%" DataKeyFields="ID" > </ig:WebHierarchicalDataGrid>
BindDataset.Relations.Add("Relationship", BindDataset.Tables(0).Columns("ID"), BindDataset.Tables(1).Columns("MRS_ID"))
With WebHierarchicalDataGrid_Changes.DataSource = BindDataset.DataBind()End With
Hello,
Rather than using length, use get_length() instead. There is an example of this in the client side object model (CSOM) in the help.
Let me know if you have any questions with this matter.