DataGrid multi-select?

1 Answer 47 Views
GridView
Bradley
Top achievements
Rank 2
Iron
Iron
Iron
Bradley asked on 31 Jan 2025, 07:50 PM | edited on 31 Jan 2025, 07:50 PM

I have a simple, classic grid of numerous records with a checkbox column.  I'd like to be able to multi-select records in the grid and then toggle the checkbox.  How would I go about doing that?

A tiny, working example would be much appreciated!

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 03 Feb 2025, 11:28 AM

Hello Bradley,

This sounds like the default look and feel of the GridViewSelectColumn. Is this what you are looking for?

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Bradley
Top achievements
Rank 2
Iron
Iron
Iron
commented on 07 Feb 2025, 06:47 PM

Unfortunately I don't actually see an advantage of using the GridViewSelectColumn. It's like GridViewCheckBoxColumn but without databinding.  It's the functionality of having extended selections toggle the checkbox that I'm after.

I've come up with a programmatic solution using a selection mode of "Extended" together with the "SelectionChanged" event.  It may not be particularly elegant, but it works. :)

Tags
GridView
Asked by
Bradley
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or