This is a migrated thread and some comments may be shown as answers.

radnumerictextbox DataType="System.Decimal" crashes

1 Answer 232 Views
Input
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 08 Sep 2011, 11:04 PM
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?


1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 12 Sep 2011, 10:06 AM
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 >>

Tags
Input
Asked by
Albert
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or