Hi ,
In the Ighierarchical grid , we have Rowselectors as checkboxes with multiple selection and also we have a button in one of the columns in the grid.
On click of this button , we should be able to get the count of checkboxes and if the count is only 4 , we should get these 4 rows data and perform actions accordingly.
Is there a way to get this count and also the row data of the corresponding rows that had been checked by user in the checkBoxStateChanging ?
Or is there any other events to achieve this functionality? Kindly suggest.
Thanks
Thanks,
Ghirijha.
Hello,
Thank you for posting into our community.
And yes, you can get all of the selected rows with the following method - http://www.igniteui.com/help/api/2016.1/ui.iggridselection_hg#methods:selectedRows
Hi,
Thank you for the suggestion.
Adding to the question , I have a button in the parent row record and I need to get the selected rows from the child grid on click of this button.
How can I achieve this with Ighierarchical grid. Any code samples regarding the same is highly appreciated.
I'm highly recommending this topic
There you can find how to select a cell from a specific child grid - http://www.igniteui.com/help/jquery-ighierarchical-grid-selecting-and-deselecting-rows-and-cell-programmatically-in-ighierarchicalgrid#selecting-cell
And using this approach you can also get all of the selected rows or cells for a specific layout.
Hello Ghirijha,
Thank you for the update. It appears that your error image did not appear properly. Please attach the error is a separate zip file so we can download it and investigate this matter further.
Calling this event to get all the selected rows on button click , I am getting below error.
Note: we are using Ig hierarchical grid inside table tag.
Please let know how to fix this issue .
Ghirijha