RadNumericTextBox doesn't work? At all?

5 posts, 0 answers
  1. rachmann
    rachmann avatar
    4 posts
    Member since:
    Jul 2012

    Posted 11 Jul 2012 Link to this post

    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" 
  2. rachmann
    rachmann avatar
    4 posts
    Member since:
    Jul 2012

    Posted 11 Jul 2012 Link to this post

    This was an environment issue - please ignore.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. John
    John avatar
    2 posts
    Member since:
    Mar 2012

    Posted 23 Jul 2012 Link to this post

    What was the issue?  I'm getting the same parser error.

    Thank you.
    John
  5. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 24 Jul 2012 Link to this post

    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.
  6. John
    John avatar
    2 posts
    Member since:
    Mar 2012

    Posted 24 Jul 2012 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017