milton luiz Posted February 29, 2016 Posted February 29, 2016 Hello, I would like to know a function within the unigui, that causes the <enter> skip to the next line in a unidbgrid, maintaining the status issue of similar field to what happens when we press the tab key. Can someone help me ? Quote
Sherzod Posted February 29, 2016 Posted February 29, 2016 Hi, If I understand you correctly,you need approximately this functionality?: http://forums.unigui.com/index.php?/topic/4333-unidbgrid-and-enter-key/&do=findComment&comment=22039 Best regards. Quote
milton luiz Posted February 29, 2016 Author Posted February 29, 2016 Thanks for the reply.. Yes that is the functionality!But when you press < enter> to continue at the same column on the next line at editing mode , not for the next column of the same line . Then <enter> always come down to the next line at the same column . Quote
Sherzod Posted February 29, 2016 Posted February 29, 2016 Hi, Then try: function reconfigure(sender, store, columns, oldStore, the, eOpts) { var grid = sender; for (var i = 0; i < columns.length; i++) { if (columns[i].getEditor()) { columns[i].getEditor().on('specialkey', function(field, e) { if (e.getKey() == 13) { var store = grid.getStore(); var selModel = grid.getSelectionModel(); var selectedRecord = selModel.getLastSelected(); var recordIndex = store.indexOf(selectedRecord); var nextRecord = store.getAt(recordIndex + 1); if (nextRecord) { selModel.select(nextRecord); } } }) } } } Best regards. Quote
milton luiz Posted March 2, 2016 Author Posted March 2, 2016 Solved the leap problem with the enter key , just need to go down to the bottom line column be in edit mode to prevent the user having to give another click to put in add mode . Quote
milton luiz Posted March 9, 2016 Author Posted March 9, 2016 Alguém saberia alterar esta função para que ao avançar a linha o campo já fique em modo de edição, não sendo necessário dar outro clique para ficar em modo de edição. Does anyone know how to change this function to move the line of the field that let in edit mode , there is no need to click another to stay in edit mode ? function reconfigure(sender, store, columns, oldStore, the, eOpts) { var grid = sender; for (var i = 0; i < columns.length; i++) { if (columns.getEditor()) { columns.getEditor().on('specialkey', function(field, e) { if (e.getKey() == 13) { var store = grid.getStore(); var selModel = grid.getSelectionModel(); var selectedRecord = selModel.getLastSelected(); var recordIndex = store.indexOf(selectedRecord); var nextRecord = store.getAt(recordIndex + 1); if (nextRecord) { selModel.select(nextRecord); } } }) } }} Tks. Quote
Sherzod Posted March 9, 2016 Posted March 9, 2016 Hi, Try: function reconfigure(sender, store, columns, oldStore, the, eOpts) { var grid = sender; for (var i = 0; i < columns.length; i++) { if (columns[i].getEditor()) { columns[i].getEditor().on('specialkey', function(field, e) { if (e.getKey() == 13) { var store = grid.getStore(); var selModel = grid.getSelectionModel(); var selectedRecord = selModel.getLastSelected(); var recordIndex = store.indexOf(selectedRecord); var nextRecord = store.getAt(recordIndex + 1); if (nextRecord) { selModel.select(nextRecord); if (grid.editingPlugin && grid.uniRow && grid.uniCol){ var _row = grid.uniRow; var _col = grid.uniCol; setTimeout(function(){ grid.editingPlugin.startEdit(_row, _col); }, 10); } } } }) } } } Best regards. Quote
milton luiz Posted March 10, 2016 Author Posted March 10, 2016 Its working... Thank you for your help... Quote
eduardosuruagy Posted May 9, 2017 Posted May 9, 2017 Good Morning, How do I jump to the next column? I want to use that same example by jumping to the next column and when it reaches the last column it jumps to the next row. Thank you!! Quote
Sherzod Posted May 9, 2017 Posted May 9, 2017 Good Morning, How do I jump to the next column? I want to use that same example by jumping to the next column and when it reaches the last column it jumps to the next row. Thank you!! Hi, Have you tried ?: http://forums.unigui.com/index.php?/topic/4333-unidbgrid-and-enter-key/&do=findComment&comment=22039 Best regards, Quote
eduardosuruagy Posted May 9, 2017 Posted May 9, 2017 I tried, but when it comes to the last line and the last column it does nothing. Even clicking enter nothing happens. If the grid does not have any record when it will include the first record and you get in the last column nothing will happen as well. Quote
Sherzod Posted May 10, 2017 Posted May 10, 2017 Hi Eduardo, Which edition and build are you using? Best regards, Quote
eduardosuruagy Posted May 10, 2017 Posted May 10, 2017 I am using the trial version 1.00RC1385. I'm doing some registration screens that I use on my desktop system, if it works I'll buy unigui this week. Thank you for your help!! Quote
Sherzod Posted May 10, 2017 Posted May 10, 2017 Hi Eduardo, I am using the trial version 1.00RC1385. I'm doing some registration screens that I use on my desktop system, if it works I'll buy unigui this week. Thank you for your help!! Thank you! Yes, it can be done,By the way, you can make a test case, and give us a download linkWe will try to analyze it and find a solution. Best regards, Quote
eduardosuruagy Posted May 11, 2017 Posted May 11, 2017 I bought the unigui yesterday and I will wait to get the data to install the new version, as soon as possible I will do a test and I will send it to you. Quote
Sherzod Posted May 11, 2017 Posted May 11, 2017 Hi, Thank you! OK. And if your portal email and forum email are different, then please first visit here: http://forums.unigui.com/index.php?/topic/6291-important-announcement/ Best regards, Quote
eduardosuruagy Posted May 11, 2017 Posted May 11, 2017 Hi, Thank you! OK. And if your portal email and forum email are different, then please first visit here: http://forums.unigui.com/index.php?/topic/6291-important-announcement/ Best regards, The emails are the same but I have not received access to the client portal yet. How much time do I get? I made the payment yesterday with a credit card. Quote
Administrators Farshad Mohajeri Posted May 11, 2017 Administrators Posted May 11, 2017 The emails are the same but I have not received access to the client portal yet. How much time do I get? I made the payment yesterday with a credit card. Let me check. Quote
Administrators Farshad Mohajeri Posted May 11, 2017 Administrators Posted May 11, 2017 The emails are the same but I have not received access to the client portal yet. How much time do I get? I made the payment yesterday with a credit card. Thanks for your order. All emails are sent to your email edua..@gmail.com immediately after purchase. Can you please check junk folder too? Quote
eduardosuruagy Posted May 11, 2017 Posted May 11, 2017 Thanks for your order. All emails are sent to your email edua..@gmail.com immediately after purchase. Can you please check junk folder too? There are 2 emails with the purchase data, that's all. I looked at spam and there was nothing. Quote
Administrators Farshad Mohajeri Posted May 11, 2017 Administrators Posted May 11, 2017 There are 2 emails with the purchase data, that's all. I looked at spam and there was nothing. Replied in PM. Quote
eduardosuruagy Posted May 13, 2017 Posted May 13, 2017 Good evening, can anyone help me? I would like my grid to click on the Enter it jumped between the columns and not between the lines as shown here. Has as? Quote
eduardosuruagy Posted May 15, 2017 Posted May 15, 2017 Good afternoon, can anyone help me? I would like my grid to click on the Enter it jumps between the columns and not between the lines as shown here. Has as? Quote
Sherzod Posted May 16, 2017 Posted May 16, 2017 Hi Eduardo, Can you make a simple testcase for this ?! Good afternoon, can anyone help me? I would like my grid to click on the Enter it jumps between the columns and not between the lines as shown here. Has as? Like as TAB ?! Best regards, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.