Shift + selection not working as desired in grid

1 Answer 187 Views
Grid
Shashi
Top achievements
Rank 1
Shashi asked on 26 May 2022, 08:12 AM | edited on 30 May 2022, 04:45 AM

Hello,

When locked columns and multi-column headers are configured in a grid and selectable: "multiple cell" is configured, we observed

  • Ctrl+ selection is working fine
  • Mouse drag and selection also working fine
  • Shift + selection is not working as expected (seems buggy behavior) 

Example : https://dojo.telerik.com/@shashi.kumar/IdeKUHam

What is the behavior of shift + selection on grid? Is there any documentation for the same?

Is there any way we can disable shift + selection for the grid? (ctrl selection & mouse selection should work)

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 31 May 2022, 06:42 AM

Hi Shashi,

I confirm this is a bug with the Shift selection when multi headers are configured. Please refer to the following links for tracking of it:

As t token of gratitude, I have added some Telerik points to your account.

Finally, there is no straightforward approach for achieving the disabling of just the shift key. However, you can try the following approach to see if it is working correctly for the project requirements:

var grid = $("#grid").getKendoGrid();
  
grid.tbody.on('mousedown',function(e){
    grid.selectable._allowSelection = function() { return true };
    
    if(e.shiftKey){     
        grid.selectable._allowSelection = function() { return false };      
    }        
});

Let me know if you have any questions.

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

Shashi
Top achievements
Rank 1
commented on 24 Aug 2023, 01:50 PM

Hi Nikolay, 

Thanks for the provided approach.

Please let us know the status of reported bug. Is it fixed yet?

 

Regards, 

Shashi

Neli
Telerik team
commented on 29 Aug 2023, 09:55 AM

Hi Shashi,

as marked in the GitHub issue and also in the Feedback Portal item, the fix if the bug is available starting with the 2023 R1 release (2023.1.117 version).

Regards,

Neli

Tags
Grid
Asked by
Shashi
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or