andersa@ellenshoej.dk Posted June 15, 2011 Posted June 15, 2011 Hi Farshad Is there any way that the grid could move focus to the next cell when the user presses the enter/return key? (Wishlist) Is append record by pressing arrow down/insert key supposed to work in web mode? It doesn't appear to work. UniDBGrid.Options.dgAlwaysShowEditor, doesn't work in web mode. Thanks
Administrators Farshad Mohajeri Posted June 15, 2011 Administrators Posted June 15, 2011 Hi Farshad Is there any way that the grid could move focus to the next cell when the user presses the enter/return key? (Wishlist) Normally Enter key puts cell in edit mode. I think it is not good to change this default behavior. Is append record by pressing arrow down/insert key supposed to work in web mode? It doesn't appear to work. Logged #1045 UniDBGrid.Options.dgAlwaysShowEditor, doesn't work in web mode. Logged #1044 for investigation.
andersa@ellenshoej.dk Posted June 16, 2011 Author Posted June 16, 2011 Normally Enter key puts cell in edit mode. I think it is not good to change this default behavior. I understand. Let me just illustrate the use case: I do accounting applications. Lets say the user has 10 bills that he needs to enter into the accounting system. The user opens a draft which is a grid with each line being one bill and each field being one piece of information on the bill that needs to be entered, like the billing date, the billing number, a text and an amount, etc. What the user has to do is this: Open draft and go to first cell. Press enter. Enter value. Press enter. Use arrow to go to next cell. Press enter. Enter value. Press enter. arrow to next cell.. and so on.. Instead of Enter value (go into edit mode automatically). Press enter Enter value Press enter (optionally press enter again to skip a cell if it is empty). and so on. It is similar to how you enter data into an Excel sheet. (Except in Excel enter moves down. To move right you press tab.) If you have a lot of data to enter, the first method gets a bit annoying in the end. There is just a lot of unneeded keystrokes in it. I hope it is possible as an option. With the standard VCL grid it is possible to implement this behaviour using OnKeyPress/OnKeyDown events. If something similar was available it could do the trick.
Administrators Farshad Mohajeri Posted June 16, 2011 Administrators Posted June 16, 2011 Instead of Enter value (go into edit mode automatically). Press enter Enter value Press enter (optionally press enter again to skip a cell if it is empty). and so on. It is similar to how you enter data into an Excel sheet. (Except in Excel enter moves down. To move right you press tab.) If you have a lot of data to enter, the first method gets a bit annoying in the end. There is just a lot of unneeded keystrokes in it. I hope it is possible as an option. With the standard VCL grid it is possible to implement this behaviour using OnKeyPress/OnKeyDown events. If something similar was available it could do the trick. Logged #1048
imagina Posted June 20, 2011 Posted June 20, 2011 Logged #1048 And pressing Enter at the last cell, if focus goes to the first cell of the next line or a new line is appended at the last row, would be fantastic. Thx PS. Move forward thru controls with Enter key (in addition the tab key; by example, all Raize components has a "TabOnEnter" property) would be also more fantastic.
andersa@ellenshoej.dk Posted June 21, 2011 Author Posted June 21, 2011 And pressing Enter at the last cell, if focus goes to the first cell of the next line or a new line is appended at the last row, would be fantastic. Yes, this would be nice as well.
Recommended Posts