Skip to content

Infragistics Community Forum / Web / Ignite UI for Angular / how to disable selection for few rows based on any condition in multi selection of igx-grid ignite UI for angular?

how to disable selection for few rows based on any condition in multi selection of igx-grid ignite UI for angular?

New Discussion
Shahab Ashraf
Shahab Ashraf asked on Feb 20, 2019 12:25 PM

I want to disable selection of some rows in multi-selection of igx-grid ignite UI for angular so that if I make those rows are selected by default then the user should not be able to deselect those rows.
I will appreciate any help to achieve the goal.

Sign In to post a reply

Replies

  • 0
    Tihomir Iliev
    Tihomir Iliev answered on Feb 20, 2019 12:25 PM

    Hello Shahab,

    Thank you for contacting Infragistics support.

    Yes, the scenario is possible. For the purpose you should use selectRows to select the initially selected rows. Then you should attach to onRowSelectionChange and to cancel any deselections of these rows.

    Here is a working sample – https://stackblitz.com/edit/igx-grid-preselected-rows.

    Please let us know if you need further assistance.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Shahab Ashraf
Favorites
0
Replies
1
Created On
Feb 20, 2019
Last Post
7 years ago

Suggested Discussions

Created by

Created on

Feb 20, 2019 12:25 PM

Last activity on

Feb 11, 2026 9:13 AM