Cebola Posted September 4, 2017 Posted September 4, 2017 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 Quote
Sherzod Posted September 7, 2017 Posted September 7, 2017 Hi, Can you clarify your question again please ? Best regards, Quote
Cebola Posted September 8, 2017 Author Posted September 8, 2017 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. 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. Quote
Sherzod Posted September 8, 2017 Posted September 8, 2017 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, Quote
Cebola Posted September 8, 2017 Author Posted September 8, 2017 Already solved my problem partially. Pressing the "Enter" key works by double clicking to edit no. Quote
Sherzod Posted September 11, 2017 Posted September 11, 2017 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, Quote
Cebola Posted September 11, 2017 Author Posted September 11, 2017 It did not work ... but it helped me a lot! Thank you! 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.