Problem with RadNumericTextbox since update

10 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 13 Mar 2009 Link to this post

    Hi,

    I have a rad grid bound to a linq datasource.
    The grind contains a template row with a RadNumericTextBox.

    It runs well in the local webdev server but on IIS 6 it fires an error.
    Prior the update to Q1 09 it made no problems.

    Details:
    If I define the thing like this
    <telerik:RadNumericTextBox runat="server" ID="neNumValues" MinValue="1" MaxValue="30" DbValue='<%# Bind("NumItems") %>' NumberFormat-DecimalDigits="0" Width="60px" ShowSpinButtons="True" ShowButton="False" DataType="System.Int32">  
                            </telerik:RadNumericTextBox> 
    I get the following error
    Ausnahmeinformation:  
        Ausnahmetyp: System.Web.HttpParseException  
        Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden.  
     
    Information zu interner Ausnahme (Ebene 1):  
        Ausnahmetyp: System.Web.HttpParseException  
        Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden.  
     
    Information zu interner Ausnahme (Ebene 2):  
        Ausnahmetyp: System.Web.HttpException  
        Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden.  
     
    This means in english something like it can't convert the string System.Int32 to a System.Type

    If I remove the RadNumericTextBox everything works fine.
    Even a GridNumeric works.
    But this is not usefull for me, since (as you see) I need to ensure that the value is an integer between 1 and 30.
    Currently I help me with a validator - but I would preffere to further use the RadNumericTextBox.

    The strange thing for me is, that it runs at the integrated webserver and makes the problem only at the server (W2k3 IIS6)!

    Regards

    Manfred
  2. Adam
    Adam avatar
    2 posts
    Member since:
    Oct 2007

    Posted 13 Mar 2009 Link to this post

    I experienced this exact same problem except it was with System.Decimal instead.  It worked fine on my local IIS, but failed when I built it to the server.  I tried many different variations of the value and could not get it to resolve correctly so I ended up temporarily setting the value in the code behind on init.  The page I was using worked fine before updating to the newly released version of the controls.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 14 Mar 2009 Link to this post

    Hi Adam,

    thanks for this implicit tip :)
    I replaced my NumTextbox with a bound column.
    But to change the datatype in code behind is the real solution - I didn't think of it, although I already have a handler there.
    So adding one line of code solved the problem

    Thanks again

    Manfred
  5. Adam
    Adam avatar
    2 posts
    Member since:
    Oct 2007

    Posted 18 Mar 2009 Link to this post

    I opened a support ticket on this issue and they helped me figured out that the Telerik.Web.Design.dll file wasn't in the web app's bin directory.
  6. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 18 Mar 2009 Link to this post

    Thanks for the Info Adam,

    would have been great if telerik had posted this fact in an answer to this code.

    The question now is - what else depends on the design.dll.
    Or if this was just a mistake with NumericTextBox.

    Regards

    Manfred
  7. Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 18 Mar 2009 Link to this post

    Hello Manfred,

    The issue is specific to the numeric textbox. We will research to see if it can be avoided.

    All the best,
    Dimo
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Marian
    Marian avatar
    49 posts
    Member since:
    Sep 2008

    Posted 22 Mar 2009 Link to this post

    Hello,

    Adam, thanks for your tip. I had similar problem with System.Nullable<Int32> datatype in RadNumericTextbox. Adding reference Telerik.Web.Design.dll solved my problem.
  9. Henrique Duarte
    Henrique Duarte avatar
    104 posts
    Member since:
    Oct 2003

    Posted 07 Dec 2009 Link to this post

    I'm using a 2009 Q3 - internal 1201 version and this error still occurs.
    Is there any other workaround???

    Best regards,

    Henrique
  10. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 10 Dec 2009 Link to this post

    Hello Henrique,

    Have you tried adding the Telerik.Web.Design.dll to the project? If not, please provide more information about your scenario as I cannot reproduce the error with the latest version.

    Best wishes,
    Pavel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  11. Henrique Duarte
    Henrique Duarte avatar
    104 posts
    Member since:
    Oct 2003

    Posted 10 Dec 2009 Link to this post

    Hello Pavel,

    I tried but it didn't work.
    The workaround was to set the DataType in CodeBehind.

    BTW, I downloaded the 2009 Q3 SP1 and the problem has gone.

    Best regards,

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