Updating text input of a textbox from another textbox.

2 posts, 0 answers
  1. job
    job avatar
    7 posts
    Member since:
    May 2014

    Posted 09 Dec 2014 Link to this post

    I have 3 textboxes 1.Quantity 2. Price 3. Total when i enter text in
    price i want Total.Text = Quantity.Text * Price.Text  of course all are
    converted to int.
    i want the text of Total to changed as Price is
    being Entered. Currently i am using Price_TextChanged but its not
    working as i want it to.
    here is the Code:
                  Total = Quantity * MyPrice;       
                catch (Exception ex)
    this only works when Price loses focus that is when total changes.
    i have bound all the TextBoxes with properties and i am implementing INotifyPropertyChanged.
    So what is the problem?
  2. Dimitrina
    Dimitrina avatar
    442 posts

    Posted 12 Dec 2014 Link to this post

    Hi Job,

    Please find an attached project that demonstrates this scenario.

    I hope this helps. Let us know if you have further questions.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft banner
Back to Top