Update TextBox.Text without firing an event

2 posts, 0 answers
  1. Yury Babaev
    Yury Babaev avatar
    5 posts
    Member since:
    Feb 2010

    Posted 06 May 2010 Link to this post


    Is it possible to change TextBox.Text value programmatically without firing "TextChanging" event?
    I'm looking for something like
    textBox.Text = "Leave no tracks behind"
    Best regards, Yury Babaev.
  2. Dobry Zranchev
    Dobry Zranchev avatar
    353 posts

    Posted 12 May 2010 Link to this post

    Hi Yury Babaev,

    By design RadTextBox fires the TextChanged event when the text is changed and this cannot be done silently. The behavior of the Microsoft TextBox control is the same. My advice is to use a flag and skip the actions in the TextChanged event when the flag is raised. Or you can unsubscribe from this event before the text change subscribe to it after that.

    Kind regards,
    Dobry Zranchev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top