I am using RadControls for ASP.NET AJAX.
I have implemented a simple RadGrid, which consists of a GridTemplateColumn holding a RadNumericTextBox and an ImageButton.
If a value is written into the text box and enter is pressed, the “ontextchanged” event fires and operation “value_TextChanged” is called within the code behind. But in addition, the operation “RadGrid_ItemCommand” is called within code behind and the event arguments indicates, that command “WasteCommand” has been invoked, which is not true.
I have investigated, that the problem does not occur if a button is placed on the page in addition to the grid.
<body>
<form id="form1" runat="server">
<%--<asp:Button ID="Button1" runat="server" Text="Button" />--%>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadGrid ID="RadGrid_KVA"
OnNeedDataSource="RadGrid_NeedDataSource"
OnItemCommand="RadGrid_ItemCommand"
runat="server">
<MasterTableView DataKeyNames="id" AutoGenerateColumns="False">
<Columns>
<telerik:GridTemplateColumn HeaderText="Value" UniqueName="columnValue">
<ItemTemplate>
<telerik:RadNumericTextBox ID="Value" runat="server" ontextchanged="value_TextChanged" Width="40px" >
</telerik:RadNumericTextBox>
<asp:ImageButton ID="WasteButton" runat="server" ImageUrl="btnCalculator.png"
CommandName="WasteCommand" />
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</form>
</body>
