Skip to content

Unable to get selected rows data #11965

Answered by georgianastasov
kevalgw asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @kevalgw,

The way you try to set the selected rows in the igx-grid and then retrieve them is the correct way to do it, but for version 14.x of Ignite UI Angular, as there have been several changes between version 10 and 14.

First, the selectedRows property on the igx-grid is not available in version 10.x. It has been introduced in the newer supported versions of Ignite UI Angular. What I can suggest is to use the selectRows() method and select the rows you want in the ngAfterViewInit hook.

Second, retrieving the selected rows in version 10.x can be done with the selectedRows() method. In later supported versions, this is done with the selectedRows accessor.

Having in mind that ignit…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kevalgw
Comment options

Answer selected by kevalgw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants