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

Error with RadTextBoxnumeric RadGrid's ColumnTemplate

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jhonattan
Top achievements
Rank 2
Jhonattan asked on 07 Apr 2010, 05:42 PM
Hi, i have a problem when i want save '100' in a radtexboxnumeric, postback shows a error 'Error converting data type numeric to numeric'. Only happen whith '100' value... anybody can help me?? thx
 <telerik:GridTemplateColumn DataField="Peso" HeaderText="Peso" UniqueName="Peso"
                            <EditItemTemplate> 
                                <telerik:RadNumericTextBox runat="server" ID="PesoRadNumericTextBox" Width="40px" 
                                    Culture="en-US" DbValue='<%# Bind("Peso") %>' > 
                                    <NumberFormat DecimalDigits="1" /> 
                                </telerik:RadNumericTextBox> 
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ErrorMessage="" 
                                    Text="*" ControlToValidate="PesoRadNumericTextBox" /> 
                            </EditItemTemplate> 
                            <ItemTemplate> 
                                <asp:Label ID="PesoLabel" runat="server" Text='<%# Eval("Peso", "{0:F1}%") %>'></asp:Label> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 

1 Answer, 1 is accepted

Sort by
0
Jhonattan
Top achievements
Rank 2
answered on 08 Apr 2010, 02:10 PM
I found solution, property     Type="Numeric" DataType="Decimal"
Tags
Grid
Asked by
Jhonattan
Top achievements
Rank 2
Answers by
Jhonattan
Top achievements
Rank 2
Share this question
or