I would like to know how when editing in a cell in the grid would have like the text to be edited, to be selected.
-> When editing, select all cell contents
Posted 08 September 2017 - 04:12 PM
Sorry I'm using google translate. I have a Grid that can edit in the cell, when I edit, the pointer is positioned in the last character. I wanted that when editing the text inside the cell was all selected, not to erase all the content with several backspace.
Posted 08 September 2017 - 05:00 PM
Hi,
One of the possible solutions:
UniDBGrid1 -> ClientEvents -> ExtEvents -> function reconfigure:
function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var grid = sender; for (var i = 0; i < columns.length; i++) { if (columns[i].getEditor()) { columns[i].getEditor().on('focus', function(field, e) { field.focus(true, 50); }) } } }
Best regards,
Posted 11 September 2017 - 05:56 AM
Hi,
Already solved my problem partially. Pressing the "Enter" key works by double clicking to edit no.
ExtJS's focus() method accepts defer (delay) as an argument, so you can try to increase it:
field.focus(true, 50); -> field.focus(true, 200);
Best regards,
uniGUI Public →
General →
LIVE! 13-Feb-2018 Delphi Web FrameworksStarted by İdris Yarar , 13 Feb 2018 ![]() |
|
![]()
|
||
Non-English →
Non-English →
Portuguese →
PDF sendo gravado na Pasta C: \Windows\SysWOW64 (Resolvido / Solved)Started by fabiomatte , 26 Jan 2018 ![]() |
|
![]()
|
||
uniGUI Public →
General →
Grid PagingBar CheckBox Change Listener AjaxRequest help requiredStarted by andyhill , 07 Nov 2017 ![]() |
|
![]()
|
||
uniGUI Public →
General →
Record field AllignmentStarted by Nick , 26 Oct 2017 ![]() |
|
![]()
|
||
Non-English →
Non-English →
Portuguese →
Hospedar aplicação no servidor do clienteStarted by Nervosao2017 , 30 Sep 2017 ![]() |
|
![]()
|
0 members, 0 guests, 0 anonymous users