I have a grid and a telerik button. When I click the button I want a Save As prompt dialog to appear so the user can change the file name and save the file locally to whichever destination they choose. But when I click on my button nothing happens? I am testing this through localhost\ does this function not work unless its run from the actual server? Or should it behave the same even when running from localhost? Here is a copy of my grid.
<telerik:RadAjaxPanel ID="pnlUpload" runat="server" height="580px" width="980px" LoadingPanelID="lpnUpload">
<telerik:RadButton ID="cmdExportPayrolFile" runat="server" Enabled="False" Skin="Metro" Text="Export Payroll File">
</telerik:RadButton>
<telerik:RadGrid ID="dgExportReport" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Skin="Sitefinity" Width="100%">
<ExportSettings>
<Csv ColumnDelimiter="Comma"
RowDelimiter="NewLine"
EncloseDataWithQuotes="False"
FileExtension ="txt"
/>
</ExportSettings>
<MasterTableView PageSize="15">
<Columns>
<telerik:GridBoundColumn DataField="EmplID" FilterControlAltText="" HeaderText="Emp Id" UniqueName="dgEmplID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FullName" FilterControlAltText="" HeaderText="Employee" UniqueName="dgLastName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CostCenterID" FilterControlAltText="" HeaderText="Cost Center" UniqueName="dgCostCenter">
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Total" DataFormatString="{0:$###,##0.00}" FilterControlAltText="" HeaderText="Total" UniqueName="dgTotal">
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
</Columns>
<PagerStyle PageSizeControlType="RadComboBox" />
</MasterTableView>
<PagerStyle PageSizeControlType="RadComboBox" />
<FilterMenu EnableImageSprites="False">
</FilterMenu>
</telerik:RadGrid>
<telerik:RadAjaxPanel ID="pnlUpload" runat="server" height="580px" width="980px" LoadingPanelID="lpnUpload">
<telerik:RadButton ID="cmdExportPayrolFile" runat="server" Enabled="False" Skin="Metro" Text="Export Payroll File">
</telerik:RadButton>
<telerik:RadGrid ID="dgExportReport" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Skin="Sitefinity" Width="100%">
<ExportSettings>
<Csv ColumnDelimiter="Comma"
RowDelimiter="NewLine"
EncloseDataWithQuotes="False"
FileExtension ="txt"
/>
</ExportSettings>
<MasterTableView PageSize="15">
<Columns>
<telerik:GridBoundColumn DataField="EmplID" FilterControlAltText="" HeaderText="Emp Id" UniqueName="dgEmplID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FullName" FilterControlAltText="" HeaderText="Employee" UniqueName="dgLastName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CostCenterID" FilterControlAltText="" HeaderText="Cost Center" UniqueName="dgCostCenter">
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Total" DataFormatString="{0:$###,##0.00}" FilterControlAltText="" HeaderText="Total" UniqueName="dgTotal">
<ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>
</Columns>
<PagerStyle PageSizeControlType="RadComboBox" />
</MasterTableView>
<PagerStyle PageSizeControlType="RadComboBox" />
<FilterMenu EnableImageSprites="False">
</FilterMenu>
</telerik:RadGrid>
</telerik:RadAjaxPanel>
========================
VB CODE BEHIND
=========================Protected Sub cmdExportPayrolFile_Click(sender As Object, e As EventArgs) Handles cmdExportPayrolFile.Click
dgExportReport.MasterTableView.ExportToCSV()
End Sub
Am I missing something in the grid properties? Does this feature only work if the page is run from the server and NOT localhost? I am populating the grid using advanced binding upon a combo box select index changed.
Thanks