bruno65 Posted April 16 Posted April 16 in a editing TUniDBGrid i click on a cell and i can enter a value Then i click on the cell above BUT i have to click another time to enter a value how to avoid double-clicking to enter a value in an editable cell ? Quote
Administrators Farshad Mohajeri Posted April 16 Administrators Posted April 16 Hi, ClicksToEdit property Quote
Sherzod Posted April 16 Posted April 16 Hello, https://www.unigui.com/doc/online_help/api/uniBasicGrid_TUniBasicGrid_ClicksToEdit.html Quote
bruno65 Posted April 16 Author Posted April 16 ClicksToEdit was 2 i set ClicksToEdit = 1 BUT the behavior is still the same : when i click on another editing cell it is necessary to click again to enter a value (the first click only set the focus on the cell) Quote
Sherzod Posted April 16 Posted April 16 Can you please explain it in more detail? Or maybe create a short video? Quote
bruno65 Posted April 16 Author Posted April 16 maybe use the ajax cellclick event ? check if the cell is editable and put it in edit mode Quote
bruno65 Posted April 16 Author Posted April 16 i click on the yellow cell the cell is in editing mode so i can change the value to 20 => Great then i click on the cell below (which contains 35) the yellow cell get the focus but i have to click again to change the value => it is the concern With uniGUI 0.99.96.1318 when i click on the cell below i can directly change the value without clicking again Quote
Administrators Farshad Mohajeri Posted April 16 Administrators Posted April 16 Changing value a of cell may force grid to reload data or refresh the edited row. It will force grid to cancel any active editors. Quote
Administrators Farshad Mohajeri Posted April 16 Administrators Posted April 16 34 minutes ago, Farshad Mohajeri said: Changing value a of cell may force grid to reload data or refresh the edited row. It will force grid to cancel any active editors. That said, I am investigating the issue more closely. Quote
bruno65 Posted April 17 Author Posted April 17 when i click on cell on different rows (on the same column) the reload data occurs one out of two times. Therefore clicking on the cell edits the cell every other time Quote
bruno65 Posted April 17 Author Posted April 17 when i use the new property HyperGrid with this setting : HyperGridEnabled=true HyperGridOptions : hgMonitorChanges=true, hgHideDirtyMark=true click on any cell => edit the cell why it behaves differently with HyperGrid ? Quote
Sherzod Posted April 17 Posted April 17 1 hour ago, bruno65 said: why it behaves differently with HyperGrid ? Quote
Administrators Farshad Mohajeri Posted April 17 Administrators Posted April 17 2 hours ago, bruno65 said: when i use the new property HyperGrid with this setting : HyperGridEnabled=true HyperGridOptions : hgMonitorChanges=true, hgHideDirtyMark=true click on any cell => edit the cell why it behaves differently with HyperGrid ? HyperGrid is a complete different mode of operation for DBGrid. Please refer to HyperGrid docs for details. Quote
Sherzod Posted April 20 Posted April 20 Hello @bruno65 Would you mind testing and playing around with this workaround? 1. UniDBGrid.ClientEvents.ExtEvents -> function cellclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { this._lastClickedCell = {row: rowIndex, column: cellIndex}; } 2. UniDBGrid.ClientEvents.ExtEvents [Ext.data.Store] -> function store.update(sender, record, operation, modifiedFieldNames, details, eOpts) { if (operation !== 'commit') return; var grid = this.grid; if (!grid || !grid.editingPlugin) return; var edPlugin = grid.editingPlugin; if (edPlugin.clicksToEdit !== 1) return; if (edPlugin.isRowEditor) return; var pos = grid._lastClickedCell; if (!pos || pos.row < 0 || pos.column < 0) return; Ext.defer(function() { edPlugin.startEditByPosition({ row: pos.row, column: pos.column }); }, 50); } 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.