Grid View Settings

This article aims to offer comprehensive insights into the different grid view settings that can be accessed in the view's editor from the Knack Builder.

 

This article provides detailed info of the settings that can be adjusted in a grid view:

Tip: To learn more about grid views, see our About Grid Views and our Grid Column Settings articles. 

 

How do I access grid view settings?

When you select the pen icon to edit a grid view, you will find the grid settings toolbox on the left, which offers additional options for user experience enhancement:

gridsettings1

Options

The Options section offers several customizable features that enable you to enhance your grid view further:

gridsettings2

  • Keyword Search: The Keyword Search feature adds a search field above the grid, allowing users to enter keywords for filtering records. When displaying search results, a "reset" link will appear, which can be clicked to easily reset all search criteria and conduct a new search with different criteria.

    • Which fields can be searched?: You have the option of selecting "The fields being used by the this view" or "All fields in table".

  • Record Exporting: This feature adds a convenient link above the grid, enabling users to effortlessly export all data from the grid into various formats such as CSV, JSON, or TXT.

  • Inline Editing: This feature empowers users to conveniently modify each field within the grid, eliminating the need for a separate form view. To learn more about inline editing, see this article here

  • Hide Empty Columns: Enabling this feature will hide all columns that have blank values from the Grid view.

  • Empty Grid TextThis allows you to input the text you would like to display when there is no data available.

  • Column Summaries: To learn more about column summaries, see this anchored section.

 

Keyword Search

The inclusion of a keyword search will provide users with a search field located above the grid, allowing them to enter keywords in order to filter the displayed records. These keywords will be used to search the entire record.

A "reset" link will be displayed on the search results page. Clicking on this link will reset all search criteria, allowing for easy searching with new criteria.

gridsettings3

Note: The keyword search will be combined with any rules to filter records that were added to the Source section of the Grid view.

 

Record Exporting

Exporting enables users to effortlessly export all data from the grid into various formats. An "export" button will be displayed in the top left corner, providing options to download the data in formats such as CSV, Text, or JSON.

gridsettings4

Note: The exported data will always reflect the exact data the grid is displaying, including any sorting and filters.

 

 

Inline Editing

When inline editing is enabled, users can easily edit each field within the grid by simply clicking on a grid cell. A form will then appear over the cell, allowing them to make edits directly.

gridsettings5

Note: Inline editing is not available for formula, text formula, auto increment, and equation fields.

 

Inline editing can also be disabled for specific fields. When editing a column, select "No" for the "Allow Inline Editing" option to disable inline editing for that column:

gridsettings6

Tip: To learn more about implementing inline editing to your grid view, see this article here

 

Restricting Connections

When you have filter options enabled and set to "Allow users to add custom filters", you will find an additional setting for restricting connections. This allows you to choose which connected records will show when end users of your Live App apply filters to your grid view:

restrictconnections

Example:

In the Inventory Manager template app, the Purchases grid view includes a "Product" column that happens to be a connection field to the Products data table. By selecting the filter icon to the right of the dropdown, you can apply as many filters as necessary to restrict which connected Product records will appear when end users of your Live app are filtering records:

restrictconnectionfilter

Note: For this option to become available, the connection field must exist in the data table that is used as the data source for the grid view (outgoing connection from the data source table).

In other words, if the connection field included in the grid view exists in a data table that happens to be connected to the data source table (incoming connection), the restrict connections setting will not appear for that connection field.

With the filter above applied, end users will only see Product options to choose from that include a part number (display field for the Products table):liveappfilters

Restrict Connections Dropdown

In certain scenarios where you have set your grid view to display records connected to the logged-in user, you will also have the option to select in the dropdown to only show records connected to the logged-in user role:

restrictconnectionsdropdown

Note: The connected table (in this example, "Contacts") must also have an outgoing connection to the user role table ("Sales Rep" connection field exists in the Contacts data table) in order for this dropdown option to become available. 

Additionally, page permissions must be set on the page for said user role. 

To see this example, see our Custom CRM template app

 

Hide Empty Columns

By enabling the "Hide empty columns" option, you can hide any columns on the grid that do not have any data.

gridsettings7

 

Empty Grid Text

In cases where the grid does not contain any data to display, the grid will automatically present the text "No Data" as the default message. You have the ability to modify the text that is displayed when the grid does not have any records to show:

gridsettings8

 

Column Summaries

Column summaries are utilized to perform calculations on all the rows within the column, resulting in a summary displayed at the bottom of your grid.

gridsettings9

You have the option to include formula options, such as Sum, Average, Minimum, and Maximum, to your grid as well. Multiple summaries can be added using the "add" buttons to the right of the dropdown selection options.

If you want to disable column summaries for a specific column when they are enabled, you can easily do so by hovering over the column and clicking on the pen edit icon. Then, select "No" in the Allow Summary dropdown to hide the summary for that column.

gridsettings10

 

Pagination

Pagination controls determine the number of records displayed at once. If the total number of records exceeds the set limit, buttons will be added to the grid, enabling users to navigate to additional pages and view more records.

Options here include:

  • Set how many records to display at a time: Grids can be set to show 10, 25, 50, or 100 records at a time. 

  • Let the user change the amount: After the page has finished loading, users will have the option to select the number of records they want to view per page. They will have the flexibility to choose between 10, 25, 50, 100, 500, or 1000 records.

  • Repeat pagination controls below the view: This will display navigation buttons at the bottom of the grid, allowing users to easily navigate to different pages of the grid to view more data.

gridsettings11

Below is an example showcasing a grid view with pagination links displayed at the top of the grid:

gridsettings12

Filter Options

There are three options available in the Filter Options section that allow you to define how filters function with your grid:

  • Don't allow records to be filtered: This setting will hide filter options in the Live App view.

  • Allow users to add custom filters: This feature will add a button labeled "add filters" to the grid, giving users the ability to filter records based on more specific criteria.

  • Use a filter menu: This feature enables the addition of a custom filter menu to the grid.

User Added Custom Filters

Enabling the "Allow users to add custom filters" option will introduce an "add filters" button to the grid, providing users with the capability to utilize advanced filtering options. 

gridsettings13

  • Which fields can be filtered: You have the ability to restrict the fields that can be used in the filters.

    • The fields being used by this view: This setting restricts the fields that can be used in the filters added by the user to only those fields used in this grid view.

    • All the table’s fields: This setting enables all fields in the table to be utilized in the grid's fields.

  • Filter defaults: Enables you to include predefined filters that will be automatically applied when the grid is first loaded on the page.

 

Filter Menus

Filter menus add a preconfigured filter menu above the grid view. You have the option to select which filters will be applied and customize the button text for each filter in the menu.

Please note that these filter menus cannot be modified by the user in the Live App.

gridsettings14

Tip: To learn about grid column settings, see our article here