Hi,
Could you provide an examples how can I set the event argument to eventArgs parameter of OnRespondEnd. Basically, i have an ajaxified RadGrid through RadAjaxManager. After adding an entry to this grid, i need to carry this new entry's id to do some other operations on client side. So the function OnResponseEnd look like this
I need the taskId in the function OnResponseEnd. Do i need to inject somewhere in ItemCommand of the Grid so that after "Insert" an entry, OnResponseEnd will have it's id.
Thank you,
Could you provide an examples how can I set the event argument to eventArgs parameter of OnRespondEnd. Basically, i have an ajaxified RadGrid through RadAjaxManager. After adding an entry to this grid, i need to carry this new entry's id to do some other operations on client side. So the function OnResponseEnd look like this
function
OnResponseEnd(sender, eventArgs)
{
if
(eventArgs.get_eventTarget() ==
"grdProjectTask$ctl00$ctl02$ctl01$btnUpdate"
)
{
var
taskId = eventArgs.get_eventArgument();
AddAlertToNewTask(taskId)
}
}
I need the taskId in the function OnResponseEnd. Do i need to inject somewhere in ItemCommand of the Grid so that after "Insert" an entry, OnResponseEnd will have it's id.
Thank you,