Set caret position after binding text