Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Without using WebHierarchicalDataSource - Bind Dataset to WebHeirarchicalGrid
posted

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.

I'm adding my code here : 

.aspx code

< ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid_Changes" runat="server" AutoGenerateBands="true" AutoGenerateColumns ="true" Width="100%" DataKeyFields="ID" > </ig:WebHierarchicalDataGrid>

vb code 

BindDataset.Relations.Add("Relationship", BindDataset.Tables(0).Columns("ID"), BindDataset.Tables(1).Columns("MRS_ID"))

With WebHierarchicalDataGrid_Changes
.DataSource = BindDataset
.DataBind()
End With

 

Parents
No Data
Reply
  • 22852
    Offline posted

    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.

Children
No Data