radnumerictextbox DataType="System.Decimal" crashes

2 posts, 0 answers
  1. Albert
    Albert avatar
    1 posts
    Member since:
    Mar 2011

    Posted 08 Sep 2011 Link to this post

    i have a radnumeric text box in my app and it's crashing - getting alot of issues with datatype it seems

    <telerik:RadNumericTextBox ID=theAmount1" 
    dbValue='<%# Bind(theAmount") %>' 
    MinValue="1" 
    NumberFormat-DecimalDigits="2" 
    DataType="System.Decimal"
    Type="Currency"
    runat="server">
    </telerik:RadNumericTextBox>

    here's the error

    Server Error in '/' Application. 

    Parser Error 
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

    Parser Error Message: Cannot create an object of type 'System.Type' from its string representation 'System.Decimal' for the 'DataType' property.

    Source Error: 
    Line 206: <telerik:RadNumericTextBox ID="theAmount1" 
    Line 207: dbValue='<%# Bind(theAmount") %>' 
    Line 208: MinValue="1"  

    here's another one

    <telerik:RadNumericTextBox ID="theYears1" DbValue='<%# Bind("theYears") %>'
    Width="60px" runat="server"
    DataType="System.Int16" 
    MinValue="0" NumberFormat-DecimalDigits="0">
    </telerik:RadNumericTextBox>

    Server Error in '/' Application. 

    Parser Error 
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

    Parser Error Message: Cannot create an object of type 'System.Type' from its string representation 'System.Int16' for the 'DataType' property.

    Source Error: 

    Line 154: <telerik:RadNumericTextBox ID="theYears1" DbValue='<%# Bind("theYears") %>'
    Line 155: Width="60px" runat="server"
    Line 156: DataType="System.Int16"  

    and another one

    <telerik:RadNumericTextBox ID="theDebt1" 
    Type="Currency" 
    DataType="System.Decimal"
    dbValue='<%# Bind("theDebt") %>'
    NumberFormat-DecimalDigits="2" EnabledStyle-HorizontalAlign="Right" 
    Width="90px" 
    runat="server">
    </telerik:RadNumericTextBox>

    Server Error in '/' Application. 

    Parser Error 
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

    Parser Error Message: Cannot create an object of type 'System.Type' from its string representation 'System.Decimal' for the 'DataType' property.

    Source Error: 
    Line 375: <telerik:RadNumericTextBox ID="theDebt1" 
    Line 376: Type="Currency" 
    Line 377: DataType="System.Decimal"  

    How do I fix this - any ideas?


  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 12 Sep 2011 Link to this post

    Hello Albert,

    Lets continue the conversation in the formal support ticket that you have posted.

    Kind regards,
    Vasil
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top