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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

setting empty value or whitespace to numerictextbox and maxvalue of numerictextbox from javascript.

Thread ID:

Created:

Updated:

Platform:

Replies:

107258 Feb 21,2013 05:08 PM UTC Feb 22,2013 10:57 AM UTC ASP.NET MVC (Classic) 1
loading
Tags: Tools
Devendar
Asked On February 21, 2013 05:08 PM UTC

Hi
 
How we can set whitespace or empty value.?
How we can set max value of numerictextbox from javascript,
 
Thanks in advance.
 
 

Varalakshmi R.S [Syncfusion]
Replied On February 22, 2013 10:57 AM UTC

Hi Devendar,

 

Thanks for contacting Syncfusion forums.

 

Query: How we can set whitespace or empty value.?

This can be achieved by assigning null value to the control using “Value(null)” or using its client side API “setValue()”. Assigning “Null” value to the NumericTextBox is supported only from v10.3. So, could you please upgrade to latest Essential Studio release volume1, 2013 if your version is below v10.3 or kindly create an incident if you would require patch for this in your specific version.

<code>

[View]

@Html.Syncfusion().NumericTextBox("num1”) .Value(null)

 

Or

 

[Script]

$find("num1").setValue(null);// num1 is control id

</code>

 

Query: How we can set max value of numerictextbox from javascript

Client side API method “set_maxValue” can be used to achieve this functionality.

<code>

[Script]

$find("num1").set_maxValue(50);

</code>

 

Kindly try the solution and let us know if it helps.

 

Regards,

Varalakshmi


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.

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

;