Hi,
I'm working with igHierarchicalGrid in JavaScript, where I have to get ID from row of parent grid while selecting child grid row. So in parent grid rowSelectionchanging event I'm getting my ID value, which is fine only when I expand one row in parent grid at one time but if I expand another row(s) at same time and my _row value multiple by 2 every time. Suppose if I expand 3rd row of parent grid and get _row = 6. Below is the piece of my code.
rowSelectionChanging: function (evt, ui) {
function
(evt, ui) {
var _row = ui.row.index;
var dataview = $("#Grid").data("igGrid").dataSource.dataView();
ID = dataview[_row]["ID"];
}
Please advise any help.
Thanks
Thanks for the feedback. it looks like a bug , from what you are describing. i will ask someone on the team to verify it and log an issue if it turns out to be one.
Hope it helps
Angel
Hello,
I was able to get the correct value in the rowSelectionChanging event while expanding rows. I have attached the sample for you to review. The sample uses latest service release of IgniteUI. This sample is created using our CDN references as shown on the below link:
<https://www.igniteui.com/help/deployment-guide-infragistics-content-delivery-network(cdn)>
Run the sample and test. Expand any row and it will show value in “ProjectId” column of that row.
If this sample does not demonstrates the functionality you described, feel free to modify it and send it back that demonstrates the behavior you mentioned with relevant dependencies so I may look in to this.
I hope this helps.