Explore the API
Classic, compact, and tabs-only ribbon
Compare classic and compact commands around a 32-row warehouse planning sheet. Try tabs-only, open Home, and dismiss the temporary command panel with Escape.
Try this workflowExplore and compare
Change the inputs, run an action, and inspect the live result below.
ResultLive API output
The same replenishment formulas recalculate in every ribbon view. Ctrl+F1 also toggles expanded commands and tabs-only.
Preparing sample...
Keep exploringReset or save
Reset restores this sample's starting document. TXWB retains its spreadsheet, dashboard, and reporting definitions.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Classic, compact, and tabs-only ribbon
TXSheetControlOptions.Ribbon selects compact, expanded commands when Razor mounts this editor. The runtime RibbonApi switches layout and displayMode without reloading the workbook. Compact view keeps common commands in a single row and full groups in overflow menus. Tabs-only retains the selected density and opens commands temporarily. These settings belong to the editor, survive workbook loads, and are excluded from TXWB. Reset restores the sample's initial compact view. The worksheet remains at 100% zoom.
APIs used
TXSheetControlOptions.Ribbon
editor.ui.ribbon.configure()
editor.ui.ribbon.layout
editor.ui.ribbon.displayMode
editor.ui.ribbon.reset()
How to explore
Compare classic and compact commands around a 32-row warehouse planning sheet. Try tabs-only, open Home, and dismiss the temporary command panel with Escape.
The same replenishment formulas recalculate in every ribbon view. Ctrl+F1 also toggles expanded commands and tabs-only.
Document ownership
The ready event supplies the initialized editor. Each action resolves document objects from the current workbook. Reset loads a clean TXWB snapshot; worksheet, range, chart, and dashboard handles must be acquired again after loading.
The Code panel shows this sample's actual implementation and the shared hosting code. Downloads contain the current document; changes are not stored on the server.
NuGet packages
TXTextControl.TXSheetControl.AspNetCore
2.0.0
Provides the Razor spreadsheet editor, browser APIs, and packaged fonts.
dotnet add package TXTextControl.TXSheetControl.AspNetCore --version 2.0.0