How can I use numericTextBox to valide Int32 Type?

4 posts, 0 answers
  1. liu qingshui
    liu qingshui avatar
    27 posts
    Member since:
    Mar 2010

    Posted 21 Apr 2010 Link to this post

    <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server"  CssClass="textBox" DataType="System.Int32" DisabledStyle-Font-Strikeout="False"
                                                                                                                </telerik:RadNumericTextBox> 


    How can I change the DataType to System.Int32?
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 21 Apr 2010 Link to this post

    Hello liu,

    Setting the DataType property to System.Int32 should work for you. Are there any problems with its implementation?

    Regards,
    Maria Ilieva
    the Telerik team


    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. liu qingshui
    liu qingshui avatar
    27 posts
    Member since:
    Mar 2010

    Posted 21 Apr 2010 Link to this post

    DataType="System.Int32"
    The default DataType is "System.Double",I can't change it to the System.Int32.
    But I can do it by setting " NumberFormat-AllowRounding="False" NumberFormat-DecimalDigits="0" ",
    so now it looks like I already changed to Int32.

    But I still want to know how it can really change it to System.Int32.
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 27 Apr 2010 Link to this post

    Hello liu,


    Please note the only supported DataType for the Input control is Double. We consider it as big enough to include all other types. There is no supported way to set System.Int32 as default type for the control.


    All the best,
    Maria Ilieva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top