I have a RadGrid with a GridClientDeleteColumn. The table also has a ItemTemplate with a RadNumericTextBox so values can be entered and udpate a total in the footer client side just like this example.
http://mono.telerik.com/Controls/Examples/Integration/GridAndInput/DefaultCS.aspx?product=grid
However, because of the DeleteColumn, whenever a user enters a new value in the TextBox on a row, and hits enter, the row gets deleted, it's firing off the delete event? Why? If I remove the DeleteColumn, of course, this no longer happens.
I tried adding OnClientEvent OnKeyPress event handler to capture the enter being pressed but can't find the documentation to tell me what the 'isEnterKey' property name is that shows in the debugger
Can I disable this somehow so the delete doesn't occur on pressing the enter key and the user has to click the delete button?
<telerik:GridClientDeleteColumn ButtonType="ImageButton" HeaderStyle-Width="25px" ItemStyle-Width="25px" />
...
http://mono.telerik.com/Controls/Examples/Integration/GridAndInput/DefaultCS.aspx?product=grid
However, because of the DeleteColumn, whenever a user enters a new value in the TextBox on a row, and hits enter, the row gets deleted, it's firing off the delete event? Why? If I remove the DeleteColumn, of course, this no longer happens.
I tried adding OnClientEvent OnKeyPress event handler to capture the enter being pressed but can't find the documentation to tell me what the 'isEnterKey' property name is that shows in the debugger
Can I disable this somehow so the delete doesn't occur on pressing the enter key and the user has to click the delete button?
<telerik:GridClientDeleteColumn ButtonType="ImageButton" HeaderStyle-Width="25px" ItemStyle-Width="25px" />
...
<telerik:GridTemplateColumn UniqueName="awardCol" DataField="Amount" HeaderText="Amount">
<ItemTemplate>
<telerik:RadNumericTextBox ID="amountEntryField" DataType="System.Double" MinValue="1.0" Value='<%# Eval("Amount") %>' runat="server">
<ClientEvents OnBlur="amtBlur" OnFocus="amtFocus" OnKeyPress="updateAmount" />
</telerik:RadNumericTextBox>
</ItemTemplate>