[]
        
(Showing Draft Content)

User Interface

DsDataViewer provides a familiar easy-to-use interface so that end-users can perform few operations at run-time to view data as per requirement. The control mainly comprises of three parts:

Toolbar

DsDataViewer toolbar is a set of buttons on top of the control which lets you perform basic functions on the viewer or its components such as opening a document or zooming the data display area.

The DsDataViewer main toolbar provides Open document, Zoom, Toggle Fullscreen, Themes, Notes, Sort and Filter, and About controls.

In fullscreen view, this main toolbar changes to a mini-toolbar that gets displayed towards the bottom. Mini-toolbar also displays the same options as that of main default toolbar.

DsDataViewer displays the workbook in fullscreen view with a compact mini-toolbar positioned below the worksheet data area.

The following table lists all the toolbar buttons and their respective functions for your quick reference:

Toolbar Button Snapshot

Toolbar Button Name

Toolbar Button Function

The DsDataViewer Open document toolbar button opens the Select Data File dialog for choosing a supported file.

Open document

Displays the Select Data File dialog where you can select a new data file of XLSX, CSV, ARROW, PARQUET, and SpreadJS (SSJSON and .sjs) data formats, to be opened along with various data options respective to each of these formats.

The DsDataViewer Zoom toolbar control provides zoom-out, percentage, and zoom-in options for changing the data display scale.

Zoom

Lets you zoom-in and zoom-out the data files using buttons or by setting the predefined zoom percentage through Zoom Mode dropdown.

The DsDataViewer Toggle Fullscreen toolbar button switches the workbook between standard and fullscreen display modes.

Toggle Fullscreen

Hides toolbar ribbon on the top to display data viewer in full screen mode. You can switch back to original mode by clicking the icon which gets displayed in the mini-toolbar.

The DsDataViewer Themes toolbar button cycles the viewer through the available predefined interface themes during workbook viewing.

Themes (Cycle through available themes)

Changes the theme of the DsDataViewer control while cycling through the predefined themes on every click. Currently, DsDataViewer supports six themes.

The DsDataViewer Show or Hide Notes toolbar button toggles the visibility of supported spreadsheet notes.

Show/Hide Notes

Shows or hides all the notes in the spreadsheet.

The DsDataViewer Sort and Filter toolbar button opens commands for sorting, filtering, and clearing worksheet filters.

Sort & Filter

Sorts or filters a large group of data to make it easy to read.

The DsDataViewer About toolbar button opens product version and licensing information for the viewer control.

About (About the Document Solutions Data Viewer)

Displays a pop-up box which provides version and licensing information about DsDataViewer.

Note: The toolbar layout can be customized to hide or reorder the buttons for the three view modes: default (desktop), mobile, and full screen. For more information, see Customize Toolbar.

The following sections elaborate on the toolbar operations:

Open Document

DsDataViewer lets you open various file formats such as XLSX, CSV, ARROW, PARQUET, and SpreadJS (SSJSON and .sjs). The control provides a user-friendly interface and API options to so that you can view the data files in the desired view. To know more about opening a document in DsDataViewer, see Load File.

Zoom

DsDataViewer lets you zoom-in or zoom-out the opened data file. When working on client-side, user can either use the Zoom In(The DsDataViewer Zoom In toolbar button increases the display scale of the currently opened data file.) or Zoom Out(The DsDataViewer Zoom Out toolbar button decreases the display scale of the currently opened data file.) buttons or can set using the Zoom Scale dropdown. User can specify the zoom scale in numeric by selecting from the Zoom Scale dropdown or by entering a custom value. The dropdown shows values from 25 percent to 200 percent with the interval of 25 between each of them. However, by typing in the Zoom Scale dropdown, user can set zoom percentage to any integer value between 25 and 400. That is, user can view a file at a minimum zoom value of 25 percent and a maximum zoom value of 400 percent.

The DsDataViewer Zoom Scale dropdown lists percentage presets from 25 percent through 200 percent for viewing workbook data.

Toggle FullScreen

DsDataViewer lets you display data viewer in full screen at runtime as well as through code. By clicking Toggle Fullscreen button (The DsDataViewer Toggle Fullscreen button hides the main toolbar and expands the workbook data display area.) in the toolbar, user can hide toolbar ribbon on the top, display data viewer in full view, and a mini-toolbar gets displayed towards the bottom. You can switch back to original mode by clicking the icon() which gets displayed in the mini-toolbar.

DsDataViewer switches between standard view and fullscreen view, replacing the main toolbar with a bottom mini-toolbar.

Themes

DsDataViewer provides six pre-defined themes, so that you can choose the most suitable ones matching to your application interface. You can cycle through the available themes by clicking the theme (The DsDataViewer Themes toolbar button changes the visual theme applied to the viewer interface and workbook area.) button on the toolbar. These pre-defined themes are located in the "themes" folder of the build. To be able to apply these themes successfully, the "themes" folder should be kept at the same location as that of dsdataviewer.js file.

DsDataViewer cycles through predefined interface themes when the user repeatedly selects the Themes toolbar button.

Show/Hide Notes

DsDataViewer lets you show or hide all the notes in the spreadsheet (XLSX and SpreadJS (SSJSON and .sjs)) with one button click. The Show/Hide Notes toggle button (The DsDataViewer Show or Hide Notes toolbar button toggles the visibility of supported spreadsheet notes.) displays all the notes in a spreadsheet if all of the notes are hidden, or it hides all the notes if they are set to always display. If a few of the notes are hidden and a few are set to always display, on the first click, the button hides the notes that were set to always display. On a second click, the button displays all the notes.

DsDataViewer uses the Show or Hide Notes toolbar button to hide and redisplay notes in a loan calculator worksheet.

Note: The Show/Hide Notes toggle button will not be displayed on the toolbar in the following cases, even after customizing the toolbar to display the button:

  • DsDataViewer doesn't have any open files.

  • The file that was opened is in CSV format. CSV format files do not contain notes.

  • The file doesn't contain any notes.

  • The notes are on a hidden sheet. DsDataViewer currently does not support showing or hiding sheets after the file is opened.

Sort & Filter

DsDataViewer provides Sort & Filter button (The DsDataViewer Sort and Filter toolbar button provides commands for ordering data and managing range or table filters.) in the toolbar that allows you to sort and filter a range or Table. This button is supported with the Professional License of DsDataViewer. When you click on the Sort & Filter button, a drop-down menu opens that contains four options:

  • Sort A to Z or Sort Smallest to Largest: Sorts the data in ascending order.

  • Sort Z to A or Sort Largest to Smallest: Sorts the data in descending order.

    The names of the options Sort A to Z and Sort Z to A will change to Sort Smallest to Largest and Sort Largest to Smallest, respectively, according to the first cell of the selected range, whether it contains a number, null or empty, date or text.

  • Filter: Toggles (adds and removes) the Filter icon in a selected range or Table. Click the Filter icon to open the Filter dialog.

    In the XLSX, ARROW, PARQUET, or SpreadJS (SSJSON and .sjs) file, the Filter icon will be added to the row before the selected range and to the header row of the selected Table. And the icon is removed from the sheet when a range is selected, except for the Tables (and vice versa).

    In CSV, the Filter icon is always added or removed from the header row in the grid decorator for all columns.

  • Clear Filter: Clears all filters (except sort state) in a Table or sheet. If the first cell of the selected range is included in the Table, the Table filter state will be cleared; otherwise, the sheet filter state is cleared.

DsDataViewer displays the Sort and Filter dropdown and a column Filter dialog for selecting sorting and filtering options.

The Sort & Filter button is enabled when the selected range can be sorted, filtered, or filters are cleared. However, the Sort & Filter button will appear disabled when the selected range contains the intersection of a range and a Table and the intersection has either of the following cases:

  • There is no filter state to clear (either in the Table or sheet) or

  • The Table has filtered data, but the first cell of the selection is included in the range; or

  • The range has filtered data, but the first cell of the selection is included in the Table.

Also, the button appears disabled in a sheet protected for Sort and Auto Filter.

Similarly, the Sort & Filter drop-down menu options are also disabled in certain cases that are described in the following table:

Options

Cases

Sort A to Z or Sort Smallest to Largest

The selected range and Table intersect, and either of them is showing filtered data, or the opened file is a CSV file.

In a CSV file, the sort operation needs to be done through the Filter dialog.

Sort Z to A or Sort Largest to Smallest

The selected range and Table intersect, and either of them is showing filtered data, or the opened file is a CSV file.

In a CSV file, the sort operation needs to be done through the Filter dialog.

Filter

“Show Filter(s)“ data option in the Open dialog is unchecked, or the selected range and Table intersect, and either of them is showing filtered data.

Clear Filter

No filter is applied to the Table or sheet, or “Show Filter(s)“ data option in the Open dialog is unchecked.

For more information on how to use these options for sorting and filtering a range or Table, see Sorting and Filtering.

About

The About button(The DsDataViewer About toolbar button opens product version and licensing information for the viewer control.) on the toolbar lets you display information related to the control and its version in the form of a pop-up shown below.

The DsDataViewer About dialog displays the installed product version, licensing notice, related products, and a Dismiss button.

Sidebar

DsDataViewer sidebar provides a search button on the left side that lets you perform search operations on the viewer.

The DsDataViewer sidebar presents Expand menu and Search controls along the left side of the workbook area.

DsDataViewer also allows you to expand the sidebar by clicking on the Expand menu (The DsDataViewer Expand menu button opens the sidebar to reveal available panels such as Search.) button.

The expanded DsDataViewer sidebar displays the Search panel entry beside the workbook data display area.

The following table lists the sidebar button and its respective function for your quick reference:

Sidebar Button Snapshot

Sidebar Button Name

Sidebar Button Function

The DsDataViewer Search Panel button opens tools for finding workbook data on the current sheet or all sheets.

Search Panel

Allows you to search for data in a workbook on the current sheet or across the sheet. It also provides options to customize the search.

Note: The sidebar can be customized to hide the sidebar or hide the button. For more information, see Customize Sidebar.

The following section elaborates on the sidebar operations:

Search Panel

DsDataViewer provides Search Panel (The DsDataViewer Search Panel button opens tools for finding workbook data on the current sheet or all sheets.) to search for data in a workbook on the current sheet or across the sheet. Search Panel provides FindWhat field, Within option to choose between Current Sheet or All Sheets, a few advance options such as Match Case, Match Exactly, and Use Wildcards, and generates a query details table that will include sheet name, cell position, and value, allowing a user to quickly jump to the cell by clicking on the result.

DsDataViewer opens the Search Panel, searches workbook values, lists matching cells, and returns to the selected result.

For more information on how to use Search Panel and its options, see Search Data.

Data Display Area

Data display area of the DsDataViewer control gives you an excel-like experience with grid, sheet tabs, and other elements to support various data features.

The DsDataViewer data display area shows a worksheet grid, selected cells, sheet tabs, scroll bars, outlines, and status information.

The following table lists all the components of data display area with their respective functions:

Data Display Area Component Snapshot

Data Display Area Component Name

Data Display Area Component Function

The DsDataViewer grid arranges workbook data in selectable rows and columns within the main data display area.

Grid

Indicates the area that holds data arranged in rows and columns.

The DsDataViewer sheet tab menu lists workbook worksheets and lets users navigate directly to a selected sheet.

Sheet Tabs

Lets you switch between different worksheets of the file. When all sheet names do not fit in the available tabstrip area, navigation arrow buttons(The DsDataViewer sheet navigation arrow buttons move through worksheet tabs that do not fit in the tab strip.) are enabled to navigate between the sheets tabs. Also, there is a hamburger button(The DsDataViewer sheet tab hamburger button opens a list for navigating directly to any workbook worksheet.) on the tabstrip that displays a list of all sheets in the file to directly navigate to the required sheet tab.

The DsDataViewer vertical scroll bar moves the worksheet grid to rows outside the visible data area.

The DsDataViewer horizontal scroll bar moves the worksheet grid to columns outside the visible data area.

Scroll Bars

Allows you to view grid area beyond the visible area by scrolling horizontally and vertically.

DsDataViewer displays row group outlines with level controls and expand or collapse buttons beside the worksheet grid.

Group Outlines

Represents outlines of the grouped rows or columns and are displayed on left or top of the grid respectively.

The DsDataViewer status bar reports selected range rows, columns, average, count, numerical count, and sum.

Status Bar

Displays information about the selected range. Shows row and columns count on the left and aggregation information such as sum, average, and cell count on the right.