I am trying to export a grid on the client by using a context menu. The grid has an ajax manager on it so when I click the export option it starts an ajax request and never does the export. When i used a button i would have this code in place to stop the request.
if (args.get_eventTarget().indexOf("DownloadPDF") > 0)
but the export option is part of the context menu the event target is the grid.
I am trying to find a way to detect that the context menu was fired and the value while canceling the ajax requests on the grid for those values and fire the ajax on others.
you have to stop the request on the ajax manager like this
I just need to find how to find child controls of the requesting event