This is a migrated thread and some comments may be shown as answers.

Enter key move down not working

2 Answers 113 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Iron
Marcel asked on 24 Apr 2015, 03:08 PM

Hi there,

as soon as I switch SelectionUnit to something different than "FullRow", the current cell focus is no more jumping down to the next cell when I press the enter key.

I'm replacing the plain old WPF default DataGrid in some application right now and I need to have the RadGridView (2015.1.225.45) act in the same way as the default DataGrid! I already tried to use IKeyboardCommandProvider but it does not work. I can debug into the provider code and everything seems to be arranged correctly (the commandsToExecute list), but it seems like the GridView does not know what to do with these commands...

So, how can I get the default enter key pressed behaviour only with SelectionUnit "Cell" and SelectionMode "extended"?

Cheers,

Marcel

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Apr 2015, 08:26 AM
Hello Marcel,

Indeed, you are right - I managed to reproduce the issue easily. I logged it in our portal so that it can be scheduled for a fix and you can follow it progress. It can be found here - "Pressing Enter key when SelectionUnit is "Cell" does not move down the focus and selection."
I also updated your Telerik points for reporting it. 


Regards,
Maya
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Jonas
Top achievements
Rank 1
Iron
answered on 23 Jun 2022, 08:40 AM

Hi Telerik Team,

is this issue fixed? I am having the same problem.

Regards

Jonas

Dilyan Traykov
Telerik team
commented on 27 Jun 2022, 08:52 AM

Hello Jonas,

This issue was resolved with the R3 2015 SP1 (2015.3.1104) version of the Telerik UI for WPF suite. Can you please specify which version you're using?

I tested this with the Selection demo from our latest WPF Controls Examples application and indeed, the Enter key seems to be working as expected with all selection units.

Jonas
Top achievements
Rank 1
Iron
commented on 27 Jun 2022, 09:10 AM

Maybe I am having another problem. We are currently on version 2017.2.614.45, so this should not be the problem. 
So when I am moving with the down key through the cells, the selected cell changes as I would like to. In the attached .gif you can see that I am setting the row color as the selection changes. 
But when I am editing the cell and move down with the enter key, you can see that the selected cell is not changing. Is this intended?

I found a solution for my problem by manually changing the selection to the next cell in the OnPreparedCellForEdit-Event, so I am just curious.

Best Regards

Dilyan Traykov
Telerik team
commented on 29 Jun 2022, 01:01 PM

Hello Jonas,

Thank you for the provided recording.

I tried replicating the same result in our WPF Controls Examples demo application, however, I'm unable to observe the same behavior. Can you please test this also at your end, with the Edit Templates demo, for example, and let me know if it works as expected for you as well?

If that is the case, there may be some custom logic in your application that is affecting this. If so - please share a small sample project which demonstrates the issue so we can further investigate.
Tags
GridView
Asked by
Marcel
Top achievements
Rank 1
Iron
Answers by
Maya
Telerik team
Jonas
Top achievements
Rank 1
Iron
Share this question
or