I would like to know how to have OnBatchEditCellValueChanged even on my batch edit grid to fire on every key press of the edit UI. Off hand I'm trying to find a way to do it from the MAGIC place holder I have below, in the OnKeyPress event.
<telerik:GridTemplateColumn HeaderText="Amount" SortExpression="Amount" UniqueName="Amount"
HeaderStyle-Width="140px">
<ItemTemplate>
<asp:Label runat="server" ID="lblAmount" Text='<%# Eval("Amount", "{0:C}") %>'
</ItemTemplate>
<EditItemTemplate>
<span style="white-space:nowrap;">
<telerik:RadNumericTextBox Width="100%" runat="server" ID="rntAmount" Type="Currency" MaxLength="13"
NumberFormat-DecimalDigits="2" MinValue="0" ClientEvents-OnKeyPress="MAGIC" />
</span>
</EditItemTemplate>
</telerik:GridTemplateColumn>
So far I have played around with:
function MAGIC(sender, args){
var manager = rgMyRadGrid.get_batchEditingManager();
var cell = manager.get_currentlyEditedCell();
var cellValue = manager.getCellValue(cell);
manager.endUpdate(); //maybe this will auto fire the event? Didn't seem too...
manager.changeCellValue(cell, cellValue); //this could work, but is messy... cellValue is the 'old' value prior to key press and it highlights the text every key press.
}