Here is my code:
function
RadGrid1_Command(sender, args) {
var
commandName = args.get_commandName();
if
(commandName ==
"RebindGrid"
)
{
var
editedrow = args.get_itemIndexHierarchical();
//var itemIndex = args.get_commandArgument();
var
master = $find(
'<%= RadGrid1.ClientID %>'
).get_masterTableView();
$.ajax({
type:
"POST"
,
url:
"Default.aspx/..."
,
data:
"{year: 1}"
,
contentType:
"application/json; charset=utf-8"
,
dataType:
"json"
,
success:
function
(data) {
var
response = data.d;
alert(response.message);
}
});
}
}
I can't get the row index from get_itemIndexHierarchical() (JS error function does not exist). Also get_commandArgument() is blank if I try that.
Can anyone help?