We tried to check the spelling for data item inside Grid.
How do we fire up spelling control when we click update button of grid?
Here is the following code modified from your example:
GridEditableItem editedItem = (e.Item as GridEditableItem);
LinkButton actionButton;
//insert mode
if (editedItem.OwnerTableView.IsItemInserted)
{
actionButton = editedItem.FindControl("PerformInsertButton") as LinkButton;
}
//edit mode
else
{
actionButton = editedItem.FindControl("UpdateButton") as LinkButton;
}
actionButton.OnClientClick = "return StartCheck();";
HiddenField1.Value = actionButton.ClientID;
IGridColumnEditor editor = editedItem.EditManager.GetColumnEditor("Comment");
string editorID = editor.ContainerControl.Controls[1].ClientID;
RadSpell1.ControlsToCheck = new string[1] { editorID };
RadSpell1.IsClientID = true;