Coolite/Ext.Net has a method to get the cursor position in a textfield? Or something similar to createTextRange or selectionStart, so that i can implement it?
Printable View
Coolite/Ext.Net has a method to get the cursor position in a textfield? Or something similar to createTextRange or selectionStart, so that i can implement it?
Hi Pablo,
Well, as I know there are no wrappers for these things in Ext.Net.
You could deal with dom directly.
To determine cursor position or/and start and end selection, please use
Also you can be interested inCode:TextField1.el.dom.selectionStart
TextField1.el.dom.selectionEnd
You could inspect .selectText() to see how it's implemented.Code:http://dev.sencha.com/deploy/dev/docs/?class=Ext.form.TextField&member=selectText
Also there is a lot of js examples how to deal with selection on the internet, for example:
http://help.dottoro.com/ljtfkhio.php