Articles in this section
Category / Section

How to provide null value to NumericTextBox?

1 min read

To provide null value to NumericTextBox, follow the given steps:

Step 1: Create the NumericTextBox sample and include the necessary source files.

Step 2: First create an instance for NumericTextBox.

Step 3: By using the object, set allownull property to true such that the value will be empty. And set the Contentview.

Step 4: And by using StackLayout add the children principalNumericTextBox.

Code Snippet

public class NumericTextBox

{

    public NumericTextBox()

    {

        SfNumericTextBox  principalNumericTextBox = new SfNumericTextBox();

        principalNumericTextBox.AllowNull = true;

        this.Content = GetNumeric();

     }

    private StackLayout GetNumeric()

   {

        var mainStack = new StackLayout

        {

 Children = { principalLayout }

         };

          return mainStack;

 }

}

 

The following image provides null value to NumericTextBox:

 

http://help.syncfusion.com/android/sfnumerictextbox/Concepts_images/Concepts_img4.png

NumericTextBox Null Value

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied