Resetting Calculator Picker Value

4 posts, 0 answers
  1. Mehdi
    Mehdi avatar
    2 posts
    Member since:
    Oct 2015

    Posted 11 Jan Link to this post

    Hi,

    I am using Calculator picker independently without binding its value with any property. I am trying to resets its value after user completes its calculation from the calculator and press save button in the window. I am resetting its value in code behind like "this.CalculatorPicker.Value = 0". On display of the calculator picker it resets the value but on Calculator itself the pervious value remains. I wanted to reset the value on both display and calculator.

    Attached is the image after resetting calculator picker value.

    I also tried following

    this.CalculatorPicker.MemoryValue= 0

    this.CalculatorPicker.CacheMode = null

    But it didn't work out.

    This problem happens when we tried to do some calculations like addition, subtraction, multiplication etc.

    Kindly help me in this matter, I will be very thankful to you.

     

    Thanks and Regards

    Arslan

     
     

  2. Martin Vatev
    Admin
    Martin Vatev avatar
    87 posts

    Posted 14 Jan Link to this post

    Hello Arslan,

    For your convenience, I prepared an example to demonstrate how to achieve the desired behavior. Please take a look at the implementation and consider how this approach fits your scenario.

    I hope that this helps. Should you have any other questions, do not hesitate to contact us.


    Regards,
    Martin Vatev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mehdi
    Mehdi avatar
    2 posts
    Member since:
    Oct 2015

    Posted 26 Feb in reply to Martin Vatev Link to this post

    Thank you Martin,

    I really appreciate your answer and sorry for late replay. I tried your solution but it didn't solve my problem. Though It resets if we perform some calculation in drop down calculator but if do any calculation in main display box of picker, it doesn't reset any value and furthermore display box and rad calculator will no longer remain synchronized with each other. For example if I write (22+3) on display box and press enter after that It doesn't resets.

    Kindly help.

    Thanks,

    Arslan

     

     

     

  5. Martin Vatev
    Admin
    Martin Vatev avatar
    87 posts

    Posted 02 Mar Link to this post

    Hello Mehdi,

    Considering your report, indeed, this is an issue in RadCalculatorPicker. I have logged it in our feedback portal. You can track its progress, subscribe to status changes and add your vote/comment to it on the following link - feedback item. I have also updated your Telerik points as a gratitude for your cooperation.

    Regards,
    Martin Vatev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top