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

Maximum and minimum values

Thread ID:

Created:

Updated:

Platform:

Replies:

124635 Jun 20,2016 06:45 AM Sep 27,2018 07:40 AM Xamarin.Forms 5
loading
Tags: SfNumericTextBox
Safdar Ali
Asked On June 20, 2016 06:45 AM

hi is there anyway to add minimum and maximum value settings.

Hemalatha Marikumar [Syncfusion]
Replied On June 21, 2016 08:07 AM

Hi Safdar,

Thanks for contacting Syncfusion Support.

Currently we do not have direct support for minimum and maximum settings in SfNumericTextBox . We have created a workaround sample to achieve your requirement. Please download the same from the following link

Link: http://www.syncfusion.com/downloads/support/forum/124635/ze/NumericTextBox-439574455

Regards,
Hemalatha M.R

Atif
Replied On June 21, 2016 11:40 PM

Thanks alot.

Hemalatha Marikumar [Syncfusion]
Replied On June 23, 2016 12:16 AM

 Hi Safdar,

Thanks for your update.

Please let us know if you require any further assistance

Regards,
Hemalatha M.R 


Paul Parkins
Replied On September 26, 2018 09:32 AM

This sample is 2 years old and out of date for current versions of Syncfusion/Xamarin. It did not compile for me (11 errors, 10 warnings), even after removing the iOS and Window's projects that I cannot build due to my dev hardware availability. All issues are related to the references to Syncfusion components. Why would the Droid project even try to have a reference to Xamarin.iOS, I don't know?

I almost got it to compile by correcting the references to the versions of Syncfusion, but struggled with the re-implementation of BindableProperty.Create (which is now is obsolete since the original project was written)

So that's a bit of feedback on that sample project. So instead of seeing it work in practice, I chose to just study the code.
My questions are:
 - What is the point of the NumericRenderer class? It implements one overridden method, and does nothing in it other than call the base method. Also the class isn't even referred to any projects, so why is it even there?
 - Where is any validation against the new Minimum and Maximum properties being enforced? It seems to me you have added 2 new properties, which have no effect on the user value being entered.
 - Given this advice and sample is 2 years old, have there been any changes in Syncfusion since that would more easily allow for what the OP asked?

FYI,  I want to allow for entry of positive integer values (MaximumNumberDecimalDigits is 0), but currently it allows negatives, and numbers bigger than the largest allowable int value.


Thanks

Paul






Paul Anderson S [Syncfusion]
Replied On September 27, 2018 07:40 AM

Hi Paul, 
 
Greetings from Syncfusion. 
 
We have checked the sample, which is working fine except windows projects. We have updated the sample with the new versions 
 
Query 1: What is the point of the NumericRenderer class? It implements one overridden method, and does nothing in it other than call the base method. Also, the class isn't even referred to any projects, so why is it even there? 
NumericRenderer classes are not needed. Please ignore those classes and methods. We have removed those unwanted codes. Please find the sample from the below link. 
 
 
Query 2: Where is any validation against the new Minimum and Maximum properties being enforced? It seems to me you have added 2 new properties, which have no effect on the user value being entered. 
Validations against the new Minimum and Maximum properties are done in ValueChanged Event. 
 
Query 3: Given this advice and sample is 2 years old, have there been any changes in Syncfusion since that would more easily allow for what the OP asked? 
Currently, we don’t have Range support in SfNumericTextBox. Already we have feature request on this and it will be available in our upcoming volume release. 
 
Query 4: I want to allow for entry of positive integer values (MaximumNumberDecimalDigits is 0), but currently it allows negatives, and numbers bigger than the largest allowable int value. 
If we set Minimum value as zero, then it does not allow negative values. 
 
<local:NumericText x:Name="sfNumericTextBox" 
                   MaximumNumberDecimalDigits="0" 
                   HeightRequest="50" 
                   Minimum="0" 
                   Maximum="100" 
                   Value="52" 
                   AllowNull="false" 
                   FormatString="n"/> 
 
Regards, 
Paul Anderson 


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

;