ms-help://telerik.aspnetajax.radcontrols.2008.Q3/telerik.aspnetajax.radgrid.2008.Q3/grid-extract-old-values-from-item.html
Above is the help documentation link of Telerik Client side API . Below is the sample function to extract old values in the client side . In the below code the variable args is not assigned any object . Can any one please correct the error .
I am trying to have a grid for fast dataentry on the client side . I am having fixed rows of 10 in edit mode using pre render . So all rows are in inline edit mode . I want to extract old and new values in the client side and control the grid action .
Please can you advice me with 100 % client side on the following skills .
1) get old and new values in client side .
2) how to restrict or enable or disable a cell in grid depending on another cell value .
3) I want to validate the row content and on satisfied condition i want it to go to the next row or else restrict the user to move forward .
Thanks in advance for your help .
function
GetFirstEditedItemOldValues()
{
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
var oldValues=args.get_tableView().extractOldValuesFromItem(0);
var oldValuesSB = new Sys.StringBuilder();
{
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
var oldValues=args.get_tableView().extractOldValuesFromItem(0);
var oldValuesSB = new Sys.StringBuilder();
for(var property in oldValues)
{
oldValuesSB.append(String.format("<b>{0}</b> : {1} <br/>", property,oldValues[property]));
}
}