Skip to content

Replies

0
kyaw ayemin
kyaw ayemin answered on Feb 2, 2016 7:35 AM

Hello Tsanna,

I am new to iggrid.

I checked the sample code for using iggrid as parent-child relationship.

But I haven`t got the right solution yet.

I want to use in the following way:

1. get data from server for parent grid

2. when i click the plus icon of the parent row, I have to use some of the parent`s row data as parameter to load the server data for child grid

For now, i can load data only for parent grid. And I am using rowexpanding event to load the data for child.

But, I don`t know :

1.how to get the parent row data by that event.

2 how to set the data source that I searched for child grid.

Thanks for your help!

0
kyaw ayemin
kyaw ayemin answered on Feb 2, 2016 7:23 AM

Hello lwoodell,

Thank you for your raply.

I haven`t got the solution yet.

Thanks

0
kyaw ayemin
kyaw ayemin answered on Jan 29, 2016 6:13 AM

Hello lwoodell ,

I am new to iggrid.

I can`t call the ighierarchicalgridrowexpanding event when i click the plus icon of the parent row. So, I used the rowExpanding event as below:

rowExpanding : function(e, args) {

var parentRow = args.parentrow;    

    var parentRowId = parentRow.attr("data-id");

    var pk = $("#gridId").igGrid("getCellValue", parentRowId, "ColumnKey");   

}

Then, I got the following error:

Cannot read property dataType of null in infragistics.lob.js

May I know what is the data-id in following line:

var parentRowId = parentRow.attr("data-id");

Thanks