Multiselect in grid without CTRL

2 Answers 7 Views
Grid
Alexander
Top achievements
Rank 1
Veteran
Iron
Alexander asked on 21 Jun 2025, 11:41 AM

Hi all,

 

Going nuts over this problem. Should be simple, and for other technologies telerik shows solutions, but can not get it to work for razor pages .net core. 

 

What i want is:

I have a grid that opens in a popup when editting. In the editortemplate i have a childgrid showing all possible children that can be added to this record. That is working. However, i want to multiselect in this grid without having my customers to hold down  ctrl or use a textbox. Main reason: When using a textbox, you really have to click in the textbox, clicking outsisde of it won't work. So i removed the select column (the checkboxes) and just want people to click somewhere on a row to select it and be able to click on another row without the fiorst one loosing it's selected status. The only hook i can find is the onchange event. This indeed allows me to catch the slection process. However, the previously selected items are not available any more, so i oose them. 

Anyone an idea how to do this quite simple trick?

2 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 25 Jun 2025, 07:12 PM

Hi Alexander,

 

Thank you for reaching out.

You can achieve this requirement using the following javascript:

      $("#grid").delegate('tbody>tr', 'click', function() {
        $(this).toggleClass('k-selected');
      });
Here is a live example for demonstration:
https://dojo.telerik.com/RMHiffVf/2

Can you please check the sample and let me know if you find it helpful?

 

Regards,
Eyup
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.

0
Alexander
Top achievements
Rank 1
Veteran
Iron
answered on 28 Jun 2025, 05:23 AM
Tx for the help!!! So simple...
Tags
Grid
Asked by
Alexander
Top achievements
Rank 1
Veteran
Iron
Answers by
Eyup
Telerik team
Alexander
Top achievements
Rank 1
Veteran
Iron
Share this question
or