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.
Hi Booby,
Thanks for your reply.
I have downloaded the latest release version 12.2.20122.2086 today and used your code from attached files to produce event log. But again I'm not getting the right Row ID when expanding rows. I have hierarchical grid with two child grids under each row.
Below is the text from event log
=========rowSelectionChangING=========ID of the owner grid: GridTableui.row.index: 6=========rowSelectionChangING=========ID of the owner grid: GridTableui.row.index: 4=========rowSelectionChangING=========ID of the owner grid: GridTableui.row.index: 2=========rowSelectionChangING=========ID of the owner grid: GridTableui.row.index: 0
Regards,
Jasdeep
Hi Jasdeep,I've modified my sample to match your current description
ecatenate said:I have hierarchical grid with two child grids under each row.
Hi Bobby,
I'm still not getting correct row id during row selection. I have attached my sample files and using latest release.
Please take a look and advise if I'm doing something wrong?
Hi ,
Please advise any help of my issue from my last post.
Hello Jasdeep,
I have created a support ticket with ID CAS-110779-M2S4F4 on your behalf and linked it to Development Issue #133069 – “The ui.row.index parameter of the rowSelectionChanging/ed events is incorrect (takes into account expanded hierarchical grid row) when group-by is enabled”. You can view the status of the dev issue by going to Account > Support Activity on our website, selecting your case and clicking the Development Issues tab. When the issue is fixed, you will be automatically notified.
If you have any questions, please do not hesitate to ask.