3 Answers, 1 is accepted

Please try the following code snippet:
C#:
protected
void
RadGrid1_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
{
GridEditableItem item = (GridEditableItem)e.Item;
foreach
(GridColumn column
in
item.OwnerTableView.Columns)
{
if
(column.ColumnType ==
"GridBoundColumn"
)
{
TextBox txt = (TextBox)item[column.UniqueName].Controls[0];
txt.AutoPostBack =
true
;
txt.TextChanged +=
new
EventHandler(txt_TextChanged);
}
if
(column.ColumnType ==
"GridNumericColumn"
)
{
RadNumericTextBox txtnumeric = (RadNumericTextBox)item[column.UniqueName].Controls[0];
txtnumeric.AutoPostBack =
true
;
txtnumeric.TextChanged +=
new
EventHandler(txtnumeric_TextChanged);
}
}
}
}
void
txtnumeric_TextChanged(
object
sender, EventArgs e)
{
RadNumericTextBox txt = (RadNumericTextBox)sender;
txt.BackColor = Color.Gold;
}
void
txt_TextChanged(
object
sender, EventArgs e)
{
TextBox txt = (TextBox)sender;
txt.BackColor = Color.Gold;
}
Thanks,
Princy

Thank you for you reply, but, the Text Change event is not firing, My grid is in EditMode = "Batch",
In fact I have more questions (Obviously, I am a new using Telerik controls),
I expect click on a cell and the cell change to be editable, (as EditMode="Batch" I got that behavior), I added a template column (aspx code below) due that I need to add a RadTooltip (in order to display the previous - current value of that cell),
Now when I click on a cell the RadNumericTextBox is empty (I expect to see current value on the RadNumbericTextBox) and the value that I entry dissapear once I left the cell,
*I am populating the grid from a Dataset using the NeedDataSource event,
if you have questions, please let me know,
Best Regards,
<telerik:GridTemplateColumn HeaderText="Jan" HeaderStyle-Width="75px" SortExpression="Jan" UniqueName="Jan" DataField="Jan">
<ItemTemplate>
<asp:Label ID="lbl" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Jan")%>'></asp:Label>
<telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="lbl" RelativeTo="Element" Position="BottomCenter" RenderInPageRoot="true">
<%
# DataBinder.Eval(Container, "DataItem.Account")%>
-
<%
# DataBinder.Eval(Container, "DataItem.Jan")%>
-
% Current value on the cell, I dont know How reference that field here%
</telerik:RadToolTip>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadNumericTextBox ID="txtJan" runat="server"></telerik:RadNumericTextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
In order to change the edited cell background color you can modify the .rgBatchChanged class. For example
.rgBatchChanged
{
background-color
:
red
;
}
As for the second issue it is caused by the fact that a tool tip is placed inside the ItemTempale of the grid. In complex scenarios like these the grid does not know from which control it should extract the value(whether from the label or tool tip). In order to make things work you can subscribed to the four batch edit events(OnBatchEditGetCellValue,OnBatchEditSetCellValue,OnBatchEditGetEditorValue,OnBatchEditSetEditorValue) and handle things manually like demonstrated in this help article.
Regards,
Angel Petrov
Telerik