I have an attachment column in my radgrid that has stopped functioning properly and I can't seem to figure out why.
I have the oncommand event set to run the gridCommand function to disable AJAX for the download.
The grid loads and displays the right filename as a tooltip over the icon when I hover with my mouse which leads me to believe that the keyfields linkage is working right. When I click the download icon, the page does a postback and reloads the grid without downloading the file from the BLOB field.
Any ideas about why this is happening this way?
Thanks
Mike
<telerik:GridAttachmentColumn ButtonType="ImageButton" ImageUrl="~/Images/pdf_icon.gif" DataSourceID="odsLetter" HeaderImageUrl="~/Images/pdf_icon.gif" HeaderTooltip="Download Letter"DataTextField="FileName" AllowFiltering="false" AttachmentDataField="FileBLOB" AttachmentKeyFields="HTC_Key" FileNameTextField="FileName" UniqueName="Letter" SortExpression="LetterReleased"> <HeaderStyle HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Center" /> </telerik:GridAttachmentColumn>I have the oncommand event set to run the gridCommand function to disable AJAX for the download.
<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"> <script type="text/javascript"><!-- function gridCommand(sender, args) { if (args.get_commandName() == "DownloadAttachment") { var manager = $find('<%= RadAjaxManager.GetCurrent(Page).ClientID %>'); manager.set_enableAJAX(false); setTimeout(function () { manager.set_enableAJAX(true); }, 0); } } --> </script></telerik:RadCodeBlock>The grid loads and displays the right filename as a tooltip over the icon when I hover with my mouse which leads me to believe that the keyfields linkage is working right. When I click the download icon, the page does a postback and reloads the grid without downloading the file from the BLOB field.
Any ideas about why this is happening this way?
Thanks
Mike