Hello,
I have a RadGrid that needs to have a editable text box for each row open and ready by default.
What is better for a RadGrid with 100 -300 Rows, using a RadNumericTextBox or a GridNumericColumnEditor?
See below:
I have a RadGrid that needs to have a editable text box for each row open and ready by default.
What is better for a RadGrid with 100 -300 Rows, using a RadNumericTextBox or a GridNumericColumnEditor?
See below:
<telerik:GridTemplateColumn DataField="Price" HeaderText="Price"
SortExpression="Price" UniqueName="TemplateColumnPrice">
<ItemTemplate>
<telerik:RadNumericTextBox ID="txtPrice" runat="server" EmptyMessage="type ..." ShowSpinButtons="True" Type="Currency" width="200px" InvalidStyleDuration="100" Value='<%# Convert.ToDecimal(DataBinder.Eval(Container.DataItem, "Price")) %>'>
<NumberFormat AllowRounding="True" KeepNotRoundedValue="False" />
</telerik:RadNumericTextBox>
<asp:RequiredFieldValidator ID="rqPrice" ControlToValidate="txtPrice" runat="server" ErrorMessage="<%$ Resources:Backend, Required %>"/>
</ItemTemplate>
</telerik:GridTemplateColumn>
Or using the: GridNumericColumnEditor
<telerik:GridTemplateColumn DataField="Price" HeaderText="Price"
SortExpression="Price" UniqueName="TemplateColumnPrice">
<ItemTemplate>
<telerik:GridNumericColumnEditor ID="GridNumericColumnEditor1" runat="server">
<NumericTextBox EmptyMessage="type ..." ShowSpinButtons="True" Type="Currency" width="200px" InvalidStyleDuration="100" Value='<%#Bind("Price") %>' ID="txtPrice">
<NumberFormat AllowRounding="True" KeepNotRoundedValue="False" />
</NumericTextBox>
</telerik:GridNumericColumnEditor>
</ItemTemplate>
</telerik:GridTemplateColumn>