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
45
How to get the entire object in ['newSelection'] for the handleRowSelectionChange.
posted

In my IGXGrid, I have [rowSelection]="'multiple'" (onRowSelectionChange)="handleRowSelectionChange($event)" property and in my method if we select or deselect any checkboxs only array of values we are getting. Help me how to get the entire object handleRowSelectionChange
event

Parents
No Data
Reply
  • 1560
    Offline posted
    Hello,

    I have been looking into your question and prepared a small sample in order to demonstrate the row data could be accessed. As event arguments of onRowSelectionChange event, you have four arrays with row indexes - added, removed, newSelection and oldSelection. Each row in the grid or in the data source itself could be retrieved by index. For the purposes of the example, I used the IgxGrid getRowByIndex method which returns an IgxGridRowComponent. In order to access the row data, you could use the rowData property.
    All properties and methods of IgxGrid rows could be found here.

    Here could be found my sample for your reference. Please test it on your side and let me know if I may be of any further assistance.

    Sincerely,
    Teodosia Hristodorova
    Associate Software Develope
Children
No Data