Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
540
Copy one ultratexteditor value to another
posted

When value of a bound ultratexteditor is edited by the user I need its value to be copied to another bound ultratexteditor on the same form. How can I achieve this?

I have tried using valuechangd and textchanged events but they get fired even when user moves to a new record and not just when ultratexteditor value is changed. How can I differentiate between a texteditor values changed by the user and text editor value changed due to moving to a new record?

Parents
  • 69832
    Suggested Answer
    Offline posted

    yahya01 said:
    get fired even when user moves to a new record and not just when ultratexteditor value is changed. How can I differentiate between a texteditor values changed by the user and text editor value changed due to moving to a new record?

    Assuming that the user can only navigate to a different record via the user interface, you can handle ValueChanged or TextChanged, and add a conditional to your logic so that you only copy the value over when the first editor has the input focus (i.e., the ContainsFocus property returns true).

Reply Children
No Data