I want to by able to Add a record to my datagrid using Ajax.
I'm using inline EditMode and the GridEditCommandColumn.
<rad:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="~/RadControls/Grid/Skins/WebBlue/Update.gif"
EditImageUrl="~/RadControls/Grid/Skins/WebBlue/Edit.gif" InsertImageUrl="~/RadControls/Grid/Skins/WebBlue/Insert.gif" CancelImageUrl="~/RadControls/Grid/Skins/WebBlue/Cancel.gif"
UniqueName="EditCommandColumn" >
</rad:GridEditCommandColumn>
I need the Ajax request come to back to my codebehind page to perform the addition and then rebind. Is it possible to do something like this? (Hooked into the <ClientEvents OnCommand> If so, how do I get the values of the newly added row?
function RaiseCommand(sender, args) { |
if (args.get_commandName() === "PerformInsert") { |
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest('PerformInsert:' + <<NEEDVALUES>>); |
} |
} |
Or is there an easier way???
Many Thanks
Mike