Error with RadTextBoxnumeric RadGrid's ColumnTemplate

2 posts, 0 answers
  1. Jhonattan
    Jhonattan avatar
    16 posts
    Member since:
    Sep 2009

    Posted 07 Apr 2010 Link to this post

    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> 

  2. Jhonattan
    Jhonattan avatar
    16 posts
    Member since:
    Sep 2009

    Posted 08 Apr 2010 Link to this post

    I found solution, property     Type="Numeric" DataType="Decimal"
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top