This is a migrated thread and some comments may be shown as answers.

Resetting Calculator Picker Value

3 Answers 170 Views
Calculator
This is a migrated thread and some comments may be shown as answers.
Mehdi
Top achievements
Rank 1
Mehdi asked on 11 Jan 2016, 07:41 PM

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

 
 

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 14 Jan 2016, 01:31 PM
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
0
Mehdi
Top achievements
Rank 1
answered on 26 Feb 2016, 08:17 PM

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

 

 

 

0
Martin
Telerik team
answered on 02 Mar 2016, 11:44 AM
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
Tags
Calculator
Asked by
Mehdi
Top achievements
Rank 1
Answers by
Martin
Telerik team
Mehdi
Top achievements
Rank 1
Share this question
or