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

RadNumericTextBox doesn't work? At all?

4 Answers 234 Views
Input
This is a migrated thread and some comments may be shown as answers.
rachmann
Top achievements
Rank 1
rachmann asked on 11 Jul 2012, 04:21 PM
ok - I am using Visual Studio 2010 Ultimate in Win7 Ultimate with the latest Telerik ASP.Net Ajax trial

I'm trying to follow the tutorial on input controls

I created a C# ASP.Net Web Application, and tried to add the controls mentioned. No, first I had to 'Convert the project to a Telerik web site...and added the 'using' namespace item for Telerik

Ok, then I tried to add the controls mentioned in the tutorial:
When looking at the controls before running the app - all looked ok.  Then I ran the app and got the message below. Also, any time I then looked at the designer of the page, I also got the error below. Any other control works fine, it seems. 

...update - no, Now I get the same error on the RadTextBox

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 'Telerik.Web.UI.NumericType' from its string representation 'text' for the 'Type' property.

Source Error: 

Line 28:         <br />
Line 29:        
Line 30:         <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" 
Line 31:             Culture="en-CA" DisplayText="" EmptyMessage="Enter cost" Label="Cost:" 
Line 32:             LabelWidth="64px" MaxValue="1000" MinValue="0" SelectionOnFocus="CaretToEnd" 

4 Answers, 1 is accepted

Sort by
0
rachmann
Top achievements
Rank 1
answered on 11 Jul 2012, 05:58 PM
This was an environment issue - please ignore.
0
John
Top achievements
Rank 1
answered on 23 Jul 2012, 07:11 PM
What was the issue?  I'm getting the same parser error.

Thank you.
John
0
Vasil
Telerik team
answered on 24 Jul 2012, 01:20 PM
Hi John,

There was an issue with the Visual Studio's designers that causes them to add type="text" to the markup of the RadNumericTextBox. And this markup is invalid and causes the issue. You can edit the markup and delete this property and it will compile correct.
We have make some changes in the control, so the designers to work correctly, and the problem should not happen if you use 2012 Q2 Service Pack, that will be released soon.

Regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
John
Top achievements
Rank 1
answered on 24 Jul 2012, 01:33 PM
Thanks Vasil.  This worked, but not simply by deleting the Type="text" markup.  After I deleted that I got another error.  The designer also adds Value="".  The second error referred to this.  I deleted this as well and then the page rendered and the control worked.  However, it was working as numeric and I wanted currency.  Adding Type="Currency" then worked as I expected.

So, in short, delete Value="" and change Type="text" to Type="Currency", Type="Numeric", or Type="Percent" and it should work.

Thanks again.

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