I have an AJAX enable RadGrid. One of the columns in this grid is a GridButtonColumn. I want to do a regular postback when this button is clicked because it initiates a file download.
I thought I could use client side java script to disable AJAX on this call, but I am having trouble identifying whether the button was clicked or not. Here's what I have so far:
In the grid:
<telerik:GridButtonColumn ButtonType="PushButton" UniqueName="Download" CommandName="Download" Text="Download"></telerik:GridButtonColumn>
In the AJAX Manager:
ClientEvents OnRequestStart="mngRequestStarted" />
Client side java script
function mngRequestStarted(ajaxManager, eventArgs)
var re = new RegExp("\.DownloadButton$","ig");
eventArgs.EnableAjax = false;
Everything seems to work except the regular expression check. I was hoping that the button controls would be named DownloadButton* (based on the UniqueName), but instead they are named like clt00$ContentPlaceHolder1$RadGrid1$ctl00$ctl04$ctl00. Any suggestions on how I can make this work? Thanks.