Get Value on Input

How can I get the value of the input in the currency text box and store it in a Double Variable?

There is no data type in the control properties to set it as Double.

It's my first time using this control


1 Reply

BA BagavathiPerumal Apranandham Syncfusion Team October 27, 2023 03:06 PM UTC

Hi Alexis Perez,



We suggest you to convert the decimal value from the CurrencyTextBox into a double and storing the resulting value in your double variable. Please refer to the attached sample and code snippets for your reference.


 

CodeSnippets:

double doubleVariable = (double)this.currencyTextBox1.DecimalValue;

sfNumericTextBox1.Value = doubleVariable; 



Regards,
Bagavathi Perumal A


Attachment: CurrencyTextBoxWF_b89219af.zip

Loader.
Up arrow icon