We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Numeric Textbox Doesn't Bind to anything other than Object

Thread ID:

Created:

Updated:

Platform:

Replies:

146047 Jul 17,2019 05:33 PM UTC Jul 18,2019 08:15 AM UTC Blazor 1
loading
Tags: Numeric Textbox
ITninja
Asked On July 17, 2019 05:33 PM UTC

I'm unable to bind the numeric textbox to anything other than an object.

Can you please provide an example of how to properly implement this?

Berly Christopher [Syncfusion]
Replied On July 18, 2019 08:15 AM UTC

Hi Ozzie,   
  
Greetings from Syncfusion support.   
  
We suggest you to use the numeric value property as object type if you want to use two-way binding in the NumericTextbox. However, if you are using one-way binding, you can specify any type for Value property. Also, we are planning to provide particular types (int, decimal) in our upcoming release to value assets and this support will be included by the end of July 2019. We appreciate your patience until then.    
  
Please find the code snippet for two-way bind below.   
  
<p>NumericTextBox valus is: @NumericValue</p>   
   
<EjsNumericTextBox @bind-Value="@NumericValue"></EjsNumericTextBox>   
   
   
@code {   
    public object NumericValue { getset; } = 10;   
}   
  

We have prepared a sample and attached below.   
  
Regards,   
Berly B.C   
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon