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

Problem with RadNumericTextbox since update

10 Answers 369 Views
Input
This is a migrated thread and some comments may be shown as answers.
ManniAT
Top achievements
Rank 2
ManniAT asked on 13 Mar 2009, 09:41 AM
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

10 Answers, 1 is accepted

Sort by
0
Adam
Top achievements
Rank 1
answered on 13 Mar 2009, 11:22 PM
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.
0
ManniAT
Top achievements
Rank 2
answered on 14 Mar 2009, 03:31 PM
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
0
Adam
Top achievements
Rank 1
answered on 18 Mar 2009, 02:01 PM
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.
0
ManniAT
Top achievements
Rank 2
answered on 18 Mar 2009, 03:05 PM
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
0
Dimo
Telerik team
answered on 18 Mar 2009, 03:34 PM
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.
0
Marian
Top achievements
Rank 2
answered on 22 Mar 2009, 06:57 PM
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.
0
Henrique Duarte
Top achievements
Rank 1
Veteran
answered on 07 Dec 2009, 12:08 PM
I'm using a 2009 Q3 - internal 1201 version and this error still occurs.
Is there any other workaround???

Best regards,

Henrique
0
Pavel
Telerik team
answered on 10 Dec 2009, 07:41 AM
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.
0
Henrique Duarte
Top achievements
Rank 1
Veteran
answered on 11 Dec 2009, 01:33 AM
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
0
Premcoumar
Top achievements
Rank 1
answered on 17 Apr 2017, 03:09 PM

Hi Sir,

When i upgrade Telerik in my project , the RadNumericTextBox passing a null value

Regards

Premcoumar

 

 

Tags
Input
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Adam
Top achievements
Rank 1
ManniAT
Top achievements
Rank 2
Dimo
Telerik team
Marian
Top achievements
Rank 2
Henrique Duarte
Top achievements
Rank 1
Veteran
Pavel
Telerik team
Premcoumar
Top achievements
Rank 1
Share this question
or