jahlxx Posted December 13, 2016 Share Posted December 13, 2016 hi. - how to direct input data in a unistringgrid? the user can't direct type data in the grid. must type <RETURN> before - can I define maks for every column? - how can I control the change of the value of a cell? thanks. Link to comment Share on other sites More sharing options...
Sherzod Posted December 14, 2016 Share Posted December 14, 2016 Hi, - how to direct input data in a unistringgrid? the user can't direct type data in the grid. must type <RETURN> before For now can you try this quick solution?!But there may be a problem, if a user directs the input data very quickly... UniStringGrid1 -> ClientEvents -> ExtEvents -> function keydown: function keydown(sender, key, shift, eOpts) { var btn=sender.button; if (btn == 36 || btn == 37 || btn == 38 || btn == 39) { return false; }; var me=this.normalGrid; if (me && me.editingPlugin) { if (!me.editingPlugin.editing) { me.editingPlugin.startEditByPosition(me.getSelectionModel().getCurrentPosition()); me.editingPlugin.getActiveEditor().field.selectText(); } } } Best regards. Link to comment Share on other sites More sharing options...
zanona Posted November 7, 2018 Share Posted November 7, 2018 Did not work! I'm using version 1.50.0.1481 Link to comment Share on other sites More sharing options...
Sherzod Posted November 7, 2018 Share Posted November 7, 2018 Just now, zanona said: Did not work! I'm using version 1.50.0.1481 I know, need to correct this code... 1 Link to comment Share on other sites More sharing options...
Sherzod Posted November 7, 2018 Share Posted November 7, 2018 Can you try this code ?: function keydown(e, t, eOpts) { var me = this.ownerGrid, currPos = me.getSelectionModel().getCurrentPosition(); if (!currPos.view.isLockedView) { var btn = e.keyCode; if (btn == 37 || btn == 38 || btn == 39 || btn == 40) { return false; }; if (me && me.editingPlugin) { if (!me.editingPlugin.editing) { //me.editingPlugin.startEditByPosition(me.getSelectionModel().getCurrentPosition()); me.editingPlugin.startEditByPosition({ row: currPos.row, column: currPos.column + me.fxCols }); me.editingPlugin.getActiveEditor().field.selectText(); } } } } Link to comment Share on other sites More sharing options...
zanona Posted November 7, 2018 Share Posted November 7, 2018 It worked partially! When digit occurs editing the cell to the right never the one that was selected Link to comment Share on other sites More sharing options...
Sherzod Posted November 7, 2018 Share Posted November 7, 2018 20 minutes ago, zanona said: It worked partially! When digit occurs editing the cell to the right never the one that was selected Please explain Link to comment Share on other sites More sharing options...
zanona Posted November 7, 2018 Share Posted November 7, 2018 When I type in the selected cell the focus goes to the cell to the right allowing you to enter the value! I had to edit the selected cell and not play the focus for the cell phone right! Link to comment Share on other sites More sharing options...
Sherzod Posted November 7, 2018 Share Posted November 7, 2018 I'm sorry, I don't understand your issue Can you make a screenshot by indicating where the problem is ? Link to comment Share on other sites More sharing options...
zanona Posted November 7, 2018 Share Posted November 7, 2018 Link to comment Share on other sites More sharing options...
Sherzod Posted November 7, 2018 Share Posted November 7, 2018 I couldn't reproduce this issue Link to comment Share on other sites More sharing options...
Sherzod Posted November 7, 2018 Share Posted November 7, 2018 Can I connect to your PC? Let me know Link to comment Share on other sites More sharing options...
zanona Posted November 7, 2018 Share Posted November 7, 2018 Yes, How do I release access? Link to comment Share on other sites More sharing options...
Sherzod Posted November 8, 2018 Share Posted November 8, 2018 TeamViewer? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now