virtual grid

2 Answers 122 Views
VirtualGrid
atfat
Top achievements
Rank 1
Iron
Iron
atfat asked on 28 Jun 2021, 12:19 PM
Hello

please can you send me a sample to illustrate how to use radvirtualgrid to add a new row with an enter key to move to next column in vb.net
thank you

2 Answers, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 28 Jun 2021, 03:12 PM

Hello, Atfat,

Your question has already been answered in the other thread you have opened on the same topic. Please, see our answer there for more information.
We kindly ask you to use just one thread for a specific problem to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

Thank you for your understanding. 

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

atfat
Top achievements
Rank 1
Iron
Iron
commented on 29 Jun 2021, 03:55 AM

Hello,
i khow this but It is not working...
Nadya | Tech Support Engineer
Telerik team
commented on 29 Jun 2021, 12:31 PM

Hello,  Atfat,

Could you please specify what is not working for you and provide more information about which is the exact behavior that you want to achieve by pressing the Enter key in RadVirtualGrid. In order to provide a working solution for you, it is necessary first to understand what are the exact custom requirements that you have.

I am looking forward to your reply.

atfat
Top achievements
Rank 1
Iron
Iron
commented on 29 Jun 2021, 04:08 PM

hello Nadya
First of all thank you very much for your interesting...

My problem...

when I use the add new row (line) to add a new record ; if i press the
Enter key the cursor switch to the next column correctly except at the last column the cursor switch to the headtitle of the first column instead of switching to the second row and the new record entered is not added to the virtual grid...
please tell me what is i have to do ? and how i can upload my small app to see the problem !!
thanks in advanced...
0
Nadya | Tech Support Engineer
Telerik team
answered on 02 Jul 2021, 06:53 AM

Hello, Atfat,

If I understand you correctly, you would like to keep the default behavior when the Enter key is pressed and switch to the next column as in the Tab key behavior. I would suggest you to set the EnterKeyMode to EnterMovesToNextCell.

this.radVirtualGrid1.EnterKeyMode = RadVirtualGridEnterKeyMode.EnterMovesToNextCell;

However, if this doesn't fulfill your requirements note that RadVirtualGrid uses VirtualGridInputBehavior for handling user input behavior. You can implement a desired custom input behavior by changing the default row functionality or supplement the existing one. More information and example are available here: https://docs.telerik.com/devtools/winforms/controls/virtualgrid/handling-user-input/input-behavior. Thus, you can create a custom VirtualGridInputBehavior and override the HandleEnterKey method to implement the desired behavior. 

I hope this information helps. In case you have any further difficulties please let me know.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
VirtualGrid
Asked by
atfat
Top achievements
Rank 1
Iron
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or