or
| //set the export settings |
| rgStoreManagement.ExportSettings.FileName = "StoreExport"; |
| rgStoreManagement.ExportSettings.OpenInNewWindow = true; |
| rgStoreManagement.ExportSettings.IgnorePaging = true; |
| rgStoreManagement.ExportSettings.ExportOnlyData = true; |
| //export to csv |
| rgStoreManagement.MasterTableView.ExportToCSV(); |
Which I have had fun using to customize the grid by adding attributes. In the output I see:
<colgroup>
<col />
<col />
<col />
<col />
<col />
</colgroup>
But there appears to be no associated item that I may use to add attributes to these items, i,e,
| void grid_ItemCreated(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridColGroupItem) |
| { |
| GridColGroupItem headItem = e.Item as GridColGroupItem; |
| <telerik:GridBoundColumn DataField = "PRICE" |
| HeaderText = "PRICE" |
| HeaderTooltip = "AMDF Price of new item" |
| DataType="System.Int32" |
| EmptyDataText="No Data" |
| FilterListOptions="VaryByDataType" |
| FilterImageToolTip="Use numbers only with filter!" |
| ItemStyle-HorizontalAlign = "Right" |
| EditFormColumnIndex = "2" |
| UniqueName = "price" |
| DataFormatString = "{0:c0}"> |
| </telerik:GridBoundColumn> |
| A Runtime Error has occurred. |
| Line 6 |
| Error:Sys.Webforms.PageRequestManagerServerErrorException: |
| Specified cast is not valid. |
| /* START MicrosoftAjax.js */ |
| //---------------------------------------------------------- |
| // Copyright (C) Microsoft Corporation. All rights reserved. |
| //---------------------------------------------------------- |
| // MicrosoftAjax.js |
| Function.__typeName="Function";Function.__class=true;Function.createCallback=function(b,a){return function(){ |
| // 60,000 characters of code |
| } |
| Assertion Failed: {0}","invalidOperation":"Operation is not valid due to the current state of the object.","breakIntoDebugger":"{0}\r\n\r\nBreak into debugger?"}; |
| /* END MicrosoftAjax.js */ |