Export & templates

GridControl

Export the rows you see to CSV or a real .xlsx workbook, and render a column through your own markup.

Overview

The grid exports itself: ExportToCsvAsync, ExportToXlsxAsync and the other ExportTo…Async methods take the rows as currently filtered and sorted and the columns as currently visible, build the file on the server with the library's own writers, and hand it to the browser. Where the File System Access API exists a save dialog opens; elsewhere the file downloads. A GridColumn with a Template renders whatever markup you put inside it for each row, with context as the row object; the Status column here renders a BadgeControl.

Examples

#Export the rows you see

Two hundred and fifty estimate lines. Search, filter or sort first, then export: the file holds exactly the rows and columns on screen, in the same order. When the export is done the grid shows the row count in a status pill.

Example
Razor
C#
Item Code Description Trade Category Status Takeoff Qty Unit Price Total Cost
ITM-00001Foundation & Concrete Specification 1FoundationApproved1$582.89$582.89
ITM-00002Framing & Timber Specification 2FramingPending2$134.77$269.54
ITM-00003Roofing & Siding Specification 3MechanicalReview3$121.69$365.07
ITM-00004Plumbing Rough-In Specification 4ElectricalCompleted4$459.35$1,837.40
ITM-00005Electrical & Lighting Specification 5PlumbingApproved5$158.17$790.85
ITM-00006HVAC & Insulation Specification 6InteriorPending6$238.20$1,429.20
ITM-00007Drywall & Texturing Specification 7FoundationReview7$630.75$4,415.25
ITM-00008Interior Trim & Doors Specification 8FramingCompleted8$450.98$3,607.84
ITM-00009Flooring & Tile Specification 9MechanicalApproved9$162.60$1,463.40
ITM-00010Paint & Finish Specification 10ElectricalPending10$662.06$6,620.60
ITM-00011Cabinets & Countertops Specification 11PlumbingReview11$214.40$2,358.40
ITM-00012Sitework & Excavation Specification 12InteriorCompleted12$233.72$2,804.64
ITM-00013Foundation & Concrete Specification 13FoundationApproved13$444.76$5,781.88
ITM-00014Framing & Timber Specification 14FramingPending14$287.20$4,020.80
ITM-00015Roofing & Siding Specification 15MechanicalReview15$338.82$5,082.30
ITM-00016Plumbing Rough-In Specification 16ElectricalCompleted16$236.21$3,779.36
ITM-00017Electrical & Lighting Specification 17PlumbingApproved17$454.83$7,732.11
ITM-00018HVAC & Insulation Specification 18InteriorPending18$45.02$810.36
ITM-00019Drywall & Texturing Specification 19FoundationReview19$707.02$13,433.38
ITM-00020Interior Trim & Doors Specification 20FramingCompleted20$505.62$10,112.40
ITM-00021Flooring & Tile Specification 21MechanicalApproved21$352.85$7,409.85
ITM-00022Paint & Finish Specification 22ElectricalPending22$144.36$3,175.92
ITM-00023Cabinets & Countertops Specification 23PlumbingReview23$91.60$2,106.80
ITM-00024Sitework & Excavation Specification 24InteriorCompleted24$614.38$14,745.12
ITM-00025Foundation & Concrete Specification 25FoundationApproved25$708.75$17,718.75
ITM-00026Framing & Timber Specification 26FramingPending1$473.97$473.97
ITM-00027Roofing & Siding Specification 27MechanicalReview2$52.53$105.06
ITM-00028Plumbing Rough-In Specification 28ElectricalCompleted3$619.48$1,858.44
ITM-00029Electrical & Lighting Specification 29PlumbingApproved4$140.60$562.40
ITM-00030HVAC & Insulation Specification 30InteriorPending5$785.28$3,926.40
ITM-00031Drywall & Texturing Specification 31FoundationReview6$603.70$3,622.20
ITM-00032Interior Trim & Doors Specification 32FramingCompleted7$453.95$3,177.65
ITM-00033Flooring & Tile Specification 33MechanicalApproved8$173.42$1,387.36
ITM-00034Paint & Finish Specification 34ElectricalPending9$50.28$452.52
ITM-00035Cabinets & Countertops Specification 35PlumbingReview10$276.97$2,769.70
ITM-00036Sitework & Excavation Specification 36InteriorCompleted11$510.69$5,617.59
ITM-00037Foundation & Concrete Specification 37FoundationApproved12$712.91$8,554.92
ITM-00038Framing & Timber Specification 38FramingPending13$18.36$238.68
ITM-00039Roofing & Siding Specification 39MechanicalReview14$470.36$6,585.04
ITM-00040Plumbing Rough-In Specification 40ElectricalCompleted15$699.41$10,491.15
ITM-00041Electrical & Lighting Specification 41PlumbingApproved16$651.11$10,417.76
ITM-00042HVAC & Insulation Specification 42InteriorPending17$341.89$5,812.13
ITM-00043Drywall & Texturing Specification 43FoundationReview18$141.75$2,551.50
ITM-00044Interior Trim & Doors Specification 44FramingCompleted19$37.39$710.41
ITM-00045Flooring & Tile Specification 45MechanicalApproved20$58.36$1,167.20
ITM-00046Paint & Finish Specification 46ElectricalPending21$679.40$14,267.40
ITM-00047Cabinets & Countertops Specification 47PlumbingReview22$547.49$12,044.78
ITM-00048Sitework & Excavation Specification 48InteriorCompleted23$112.90$2,596.70
ITM-00049Foundation & Concrete Specification 49FoundationApproved24$227.47$5,459.28
ITM-00050Framing & Timber Specification 50FramingPending25$671.56$16,789.00
ITM-00051Roofing & Siding Specification 51MechanicalReview1$261.17$261.17
ITM-00052Plumbing Rough-In Specification 52ElectricalCompleted2$565.92$1,131.84
ITM-00053Electrical & Lighting Specification 53PlumbingApproved3$137.10$411.30
ITM-00054HVAC & Insulation Specification 54InteriorPending4$52.82$211.28
ITM-00055Drywall & Texturing Specification 55FoundationReview5$528.88$2,644.40
ITM-00056Interior Trim & Doors Specification 56FramingCompleted6$453.53$2,721.18
ITM-00057Flooring & Tile Specification 57MechanicalApproved7$58.18$407.26
ITM-00058Paint & Finish Specification 58ElectricalPending8$372.31$2,978.48
ITM-00059Cabinets & Countertops Specification 59PlumbingReview9$615.59$5,540.31
ITM-00060Sitework & Excavation Specification 60InteriorCompleted10$549.19$5,491.90
ITM-00061Foundation & Concrete Specification 61FoundationApproved11$200.68$2,207.48
ITM-00062Framing & Timber Specification 62FramingPending12$26.27$315.24
ITM-00063Roofing & Siding Specification 63MechanicalReview13$325.39$4,230.07
ITM-00064Plumbing Rough-In Specification 64ElectricalCompleted14$242.32$3,392.48
ITM-00065Electrical & Lighting Specification 65PlumbingApproved15$73.36$1,100.40
ITM-00066HVAC & Insulation Specification 66InteriorPending16$625.45$10,007.20
ITM-00067Drywall & Texturing Specification 67FoundationReview17$75.30$1,280.10
ITM-00068Interior Trim & Doors Specification 68FramingCompleted18$409.48$7,370.64
ITM-00069Flooring & Tile Specification 69MechanicalApproved19$25.23$479.37
ITM-00070Paint & Finish Specification 70ElectricalPending20$693.14$13,862.80
ITM-00071Cabinets & Countertops Specification 71PlumbingReview21$388.30$8,154.30
ITM-00072Sitework & Excavation Specification 72InteriorCompleted22$451.47$9,932.34
ITM-00073Foundation & Concrete Specification 73FoundationApproved23$439.66$10,112.18
ITM-00074Framing & Timber Specification 74FramingPending24$22.61$542.64
ITM-00075Roofing & Siding Specification 75MechanicalReview25$719.51$17,987.75
ITM-00076Plumbing Rough-In Specification 76ElectricalCompleted1$25.96$25.96
ITM-00077Electrical & Lighting Specification 77PlumbingApproved2$17.61$35.22
ITM-00078HVAC & Insulation Specification 78InteriorPending3$69.21$207.63
ITM-00079Drywall & Texturing Specification 79FoundationReview4$571.02$2,284.08
ITM-00080Interior Trim & Doors Specification 80FramingCompleted5$44.36$221.80
ITM-00081Flooring & Tile Specification 81MechanicalApproved6$791.49$4,748.94
ITM-00082Paint & Finish Specification 82ElectricalPending7$804.63$5,632.41
ITM-00083Cabinets & Countertops Specification 83PlumbingReview8$407.01$3,256.08
ITM-00084Sitework & Excavation Specification 84InteriorCompleted9$334.03$3,006.27
ITM-00085Foundation & Concrete Specification 85FoundationApproved10$539.12$5,391.20
ITM-00086Framing & Timber Specification 86FramingPending11$52.78$580.58
ITM-00087Roofing & Siding Specification 87MechanicalReview12$331.85$3,982.20
ITM-00088Plumbing Rough-In Specification 88ElectricalCompleted13$135.60$1,762.80
ITM-00089Electrical & Lighting Specification 89PlumbingApproved14$386.41$5,409.74
ITM-00090HVAC & Insulation Specification 90InteriorPending15$688.44$10,326.60
ITM-00091Drywall & Texturing Specification 91FoundationReview16$467.51$7,480.16
ITM-00092Interior Trim & Doors Specification 92FramingCompleted17$355.59$6,045.03
ITM-00093Flooring & Tile Specification 93MechanicalApproved18$267.77$4,819.86
ITM-00094Paint & Finish Specification 94ElectricalPending19$786.17$14,937.23
ITM-00095Cabinets & Countertops Specification 95PlumbingReview20$513.73$10,274.60
ITM-00096Sitework & Excavation Specification 96InteriorCompleted21$639.84$13,436.64
ITM-00097Foundation & Concrete Specification 97FoundationApproved22$31.50$693.00
ITM-00098Framing & Timber Specification 98FramingPending23$764.43$17,581.89
ITM-00099Roofing & Siding Specification 99MechanicalReview24$829.03$19,896.72
ITM-00100Plumbing Rough-In Specification 100ElectricalCompleted25$297.91$7,447.75
ITM-00101Electrical & Lighting Specification 101PlumbingApproved1$619.09$619.09
ITM-00102HVAC & Insulation Specification 102InteriorPending2$153.01$306.02
ITM-00103Drywall & Texturing Specification 103FoundationReview3$102.67$308.01
ITM-00104Interior Trim & Doors Specification 104FramingCompleted4$399.33$1,597.32
ITM-00105Flooring & Tile Specification 105MechanicalApproved5$298.26$1,491.30
ITM-00106Paint & Finish Specification 106ElectricalPending6$674.69$4,048.14
ITM-00107Cabinets & Countertops Specification 107PlumbingReview7$141.27$988.89
ITM-00108Sitework & Excavation Specification 108InteriorCompleted8$129.49$1,035.92
ITM-00109Foundation & Concrete Specification 109FoundationApproved9$198.31$1,784.79
ITM-00110Framing & Timber Specification 110FramingPending10$517.91$5,179.10
ITM-00111Roofing & Siding Specification 111MechanicalReview11$450.91$4,960.01
ITM-00112Plumbing Rough-In Specification 112ElectricalCompleted12$853.97$10,247.64
ITM-00113Electrical & Lighting Specification 113PlumbingApproved13$666.29$8,661.77
ITM-00114HVAC & Insulation Specification 114InteriorPending14$586.24$8,207.36
ITM-00115Drywall & Texturing Specification 115FoundationReview15$622.71$9,340.65
ITM-00116Interior Trim & Doors Specification 116FramingCompleted16$261.05$4,176.80
ITM-00117Flooring & Tile Specification 117MechanicalApproved17$484.25$8,232.25
ITM-00118Paint & Finish Specification 118ElectricalPending18$856.35$15,414.30
ITM-00119Cabinets & Countertops Specification 119PlumbingReview19$568.21$10,795.99
ITM-00120Sitework & Excavation Specification 120InteriorCompleted20$35.58$711.60
ITM-00121Foundation & Concrete Specification 121FoundationApproved21$308.60$6,480.60
ITM-00122Framing & Timber Specification 122FramingPending22$804.70$17,703.40
ITM-00123Roofing & Siding Specification 123MechanicalReview23$38.07$875.61
ITM-00124Plumbing Rough-In Specification 124ElectricalCompleted24$201.79$4,842.96
ITM-00125Electrical & Lighting Specification 125PlumbingApproved25$240.63$6,015.75
ITM-00126HVAC & Insulation Specification 126InteriorPending1$47.71$47.71
ITM-00127Drywall & Texturing Specification 127FoundationReview2$198.71$397.42
ITM-00128Interior Trim & Doors Specification 128FramingCompleted3$518.49$1,555.47
ITM-00129Flooring & Tile Specification 129MechanicalApproved4$373.88$1,495.52
ITM-00130Paint & Finish Specification 130ElectricalPending5$94.67$473.35
ITM-00131Cabinets & Countertops Specification 131PlumbingReview6$859.46$5,156.76
ITM-00132Sitework & Excavation Specification 132InteriorCompleted7$118.18$827.26
ITM-00133Foundation & Concrete Specification 133FoundationApproved8$105.18$841.44
ITM-00134Framing & Timber Specification 134FramingPending9$288.11$2,592.99
ITM-00135Roofing & Siding Specification 135MechanicalReview10$290.26$2,902.60
ITM-00136Plumbing Rough-In Specification 136ElectricalCompleted11$653.48$7,188.28
ITM-00137Electrical & Lighting Specification 137PlumbingApproved12$716.95$8,603.40
ITM-00138HVAC & Insulation Specification 138InteriorPending13$22.69$294.97
ITM-00139Drywall & Texturing Specification 139FoundationReview14$50.77$710.78
ITM-00140Interior Trim & Doors Specification 140FramingCompleted15$729.42$10,941.30
ITM-00141Flooring & Tile Specification 141MechanicalApproved16$776.51$12,424.16
ITM-00142Paint & Finish Specification 142ElectricalPending17$217.36$3,695.12
ITM-00143Cabinets & Countertops Specification 143PlumbingReview18$802.29$14,441.22
ITM-00144Sitework & Excavation Specification 144InteriorCompleted19$733.49$13,936.31
ITM-00145Foundation & Concrete Specification 145FoundationApproved20$252.53$5,050.60
ITM-00146Framing & Timber Specification 146FramingPending21$478.54$10,049.34
ITM-00147Roofing & Siding Specification 147MechanicalReview22$554.30$12,194.60
ITM-00148Plumbing Rough-In Specification 148ElectricalCompleted23$546.53$12,570.19
ITM-00149Electrical & Lighting Specification 149PlumbingApproved24$178.46$4,283.04
ITM-00150HVAC & Insulation Specification 150InteriorPending25$267.67$6,691.75
ITM-00151Drywall & Texturing Specification 151FoundationReview1$170.59$170.59
ITM-00152Interior Trim & Doors Specification 152FramingCompleted2$40.15$80.30
ITM-00153Flooring & Tile Specification 153MechanicalApproved3$211.22$633.66
ITM-00154Paint & Finish Specification 154ElectricalPending4$808.44$3,233.76
ITM-00155Cabinets & Countertops Specification 155PlumbingReview5$854.31$4,271.55
ITM-00156Sitework & Excavation Specification 156InteriorCompleted6$679.39$4,076.34
ITM-00157Foundation & Concrete Specification 157FoundationApproved7$129.94$909.58
ITM-00158Framing & Timber Specification 158FramingPending8$765.89$6,127.12
ITM-00159Roofing & Siding Specification 159MechanicalReview9$173.70$1,563.30
ITM-00160Plumbing Rough-In Specification 160ElectricalCompleted10$265.55$2,655.50
ITM-00161Electrical & Lighting Specification 161PlumbingApproved11$490.99$5,400.89
ITM-00162HVAC & Insulation Specification 162InteriorPending12$487.78$5,853.36
ITM-00163Drywall & Texturing Specification 163FoundationReview13$620.61$8,067.93
ITM-00164Interior Trim & Doors Specification 164FramingCompleted14$118.64$1,660.96
ITM-00165Flooring & Tile Specification 165MechanicalApproved15$523.45$7,851.75
ITM-00166Paint & Finish Specification 166ElectricalPending16$347.73$5,563.68
ITM-00167Cabinets & Countertops Specification 167PlumbingReview17$763.79$12,984.43
ITM-00168Sitework & Excavation Specification 168InteriorCompleted18$393.18$7,077.24
ITM-00169Foundation & Concrete Specification 169FoundationApproved19$310.97$5,908.43
ITM-00170Framing & Timber Specification 170FramingPending20$834.23$16,684.60
ITM-00171Roofing & Siding Specification 171MechanicalReview21$409.10$8,591.10
ITM-00172Plumbing Rough-In Specification 172ElectricalCompleted22$476.57$10,484.54
ITM-00173Electrical & Lighting Specification 173PlumbingApproved23$820.58$18,873.34
ITM-00174HVAC & Insulation Specification 174InteriorPending24$703.79$16,890.96
ITM-00175Drywall & Texturing Specification 175FoundationReview25$124.07$3,101.75
ITM-00176Interior Trim & Doors Specification 176FramingCompleted1$106.23$106.23
ITM-00177Flooring & Tile Specification 177MechanicalApproved2$17.42$34.84
ITM-00178Paint & Finish Specification 178ElectricalPending3$169.58$508.74
ITM-00179Cabinets & Countertops Specification 179PlumbingReview4$814.26$3,257.04
ITM-00180Sitework & Excavation Specification 180InteriorCompleted5$627.08$3,135.40
250 rows

Documentation

The export methods and GridExportFormat, and the Template parameter of GridColumn, are still to be written from Grid/GridControl.razor.cs, Grid/GridExportModels.cs and Grid/GridColumn.cs.

An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.