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

How to change the behaviour of CursorUp and CursorDown

3 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ana
Top achievements
Rank 1
ana asked on 09 Apr 2010, 01:33 PM
Is it possible to change the behaviour of  CursorUp and CursorDown? CursorUp should work like Shift-Tab and CursorDown should work like Tab inside of a RadGrid. Is this possible and if yes how?

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 15 Apr 2010, 07:34 AM
Hello Ana,

I have followed your scenario and prepared a sample project for demonstrating how to set the focus to the next textbox when arrow up is pressed and to the previous one on arrow down.
Please take a look at the attachment and let me know whether it helps.

Additionally, I would like to recommend that you examine the Excel-like RadGrid  code library showing how various mouse actions and key presses are handled.

Greetings,
Mira
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
ana
Top achievements
Rank 1
answered on 24 Apr 2010, 02:02 PM
Thank you very much for the reply!

I followed the logic in the given sample project, but there is another problem now. When arrow up is pressed and I am in the third row of the RadGrid the amount in the current cell is increased by one and the focus goes to the previous cell. In case the cursor is in another row of the RadGrid (different from the third row) the amount in the cell is only increased by one and the focus does not move from that cell. I do not want the amount in the cell to be changed. I am not sure what is the cause for that problem.

I will be very appreciate for your help!
0
Mira
Telerik team
answered on 30 Apr 2010, 09:32 AM
Hello Ana,

Based on the supplied information, it is hard to determine what is causing this behaviour.
Please open a formal support ticket and sent us a small working project, demonstrating your full setup and showing the issue.
We will debug it locally and get back to you.

Sincerely yours,
Mira
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
ana
Top achievements
Rank 1
Answers by
Mira
Telerik team
ana
Top achievements
Rank 1
Share this question
or