I am trying to use a hyperlink to initiate an export to excel and can't locate the code to do this. I would prefer not posting the page.
I am also trying to use a hyperlink to convert the grid to allow scrolling with a frozen header row. Again, I would like to do this client side and not post the page back to the server. Is this possible? If not, what is the process for implementing this with a postback?
I am using the latest build of the AJAX Controls (2012.1.411.35) and trying to do this for all browsers. My language preference is C#.
I am also trying to use a hyperlink to convert the grid to allow scrolling with a frozen header row. Again, I would like to do this client side and not post the page back to the server. Is this possible? If not, what is the process for implementing this with a postback?
I am using the latest build of the AJAX Controls (2012.1.411.35) and trying to do this for all browsers. My language preference is C#.
<div class="ProfileGridHeader" > <asp:HyperLink ID="ExcelExportLink" runat="server" CssClass="excel" NavigateUrl="javascript:void(0);" >Export to Excel</asp:HyperLink> <asp:HyperLink ID="FreezeHeaderLink" runat="server" CssClass="lock" NavigateUrl="javascript:void(0);" >Unlock Table Headers</asp:HyperLink> </div><br /><br /> <div> <telerik:RadGrid ID="ActivityGrid" runat="server" ShowFooter="True" > <MasterTableView CssClass="last grid" TableLayout="Fixed" Width="100%"> <Columns> <telerik:GridBoundColumn HeaderText="Account" FooterText="Total" DataField="AccountIDField" HeaderStyle-CssClass="first" ItemStyle-CssClass="first" FooterStyle-CssClass="gridfooter"/> <telerik:GridBoundColumn HeaderText="Date" DataField="dateField" DataFormatString="{0:MM/dd/yyyy}" ItemStyle-CssClass="date" FooterStyle-CssClass="gridfooter"/> <telerik:GridBoundColumn HeaderText="Category" DataField="categoryField" FooterStyle-CssClass="gridfooter"/> <telerik:GridBoundColumn HeaderText="Activity Type" DataField="typeField" FooterStyle-CssClass="gridfooter"/> <telerik:GridBoundColumn HeaderText="Description" DataField="descriptionField" FooterStyle-CssClass="gridfooter"/> <telerik:GridBoundColumn HeaderText="Quantity" DataField="quantityField" DataFormatString="{0:#,##0.0000;(#,##0.0000)}" ItemStyle-CssClass="numeric" FooterStyle-CssClass="gridfooter"/> <telerik:GridBoundColumn HeaderText="Price" DataField="priceField" DataFormatString="{0:$#,##0.000;$(#,##0.000)}" ItemStyle-CssClass="numeric" FooterStyle-CssClass="gridfooter"/> <telerik:GridBoundColumn Aggregate="Sum" HeaderText="Amount" DataField="amountField" DataFormatString="{0:$#,##0.00;$(#,##0.00)}" ItemStyle-CssClass="numeric" FooterStyle-CssClass="numeric"/> <telerik:GridBoundColumn HeaderText="Additional Detail" DataField="additionalDetailField" HeaderStyle-CssClass="last" ItemStyle-CssClass="last" FooterStyle-CssClass="gridfooter"/> </Columns> </MasterTableView> </telerik:RadGrid> </div>