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 it Total.Text = Price.Text * Quantity.Text of course all are converted to int.
    i wan 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
                    if (!String.IsNullOrEmpty(price.Text))
                        MyPriceTotal = QuantityInt * MyPrice;
                catch (Exception ex)
    this only works when Price loses focus.
    i have bound all the CheckBoxes 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

    Hello 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