Search
10703 results 171-180
Examples
- SearchPanes › View totals and subtotalsThis example demonstrates the
searchPanes.viewTotal
option. This option allows the table to display how many values are being displayed, in relation to the total number of values in the table.searchPanes.i18n.count
- this is the format of the count column when no filters have been applied to the table.searchPanes.i18n.countFiltered
- this is the format of the count column when filters have been applied to the table.{total}
- This is the token which is replaced by the total count of that value in the table.{shown}
- This is the token which is replaced by the count of each value where that row is being displayed currently. The default forsearchPanes.viewTotal
isfalse
. - SearchPanes › Speed OptimisationThis example shows how to make use of searchPanes functionality in order to optimise load times by only considering specific columns. By default, all columns are considered, and if your table is wide with a large number of columns this can take a considerable time.
- SearchPanes › Pre-Select RowsThis example shows how to set up the panes so that values are pre-selected. Here the Office column is being targeted and told to pre-select 'Edinburgh' and 'London'. This is done by setting the
searchPanes.preSelect
option to be an array with an object that contains arows
property which indicates which rows are to be selected, and acolumn
property which indicates which pane the selection should be made in. - SearchPanes › Change SearchPanes LayoutThis example demonstrates the
searchPanes.layout
option. This option allows you to define how many panes are displayed in one row before a new line is taken. The default isauto
which will allow SearchPanes to determine the best fit. - SearchPanes › Advanced SearchPanesThis is the section for showing the key configuration options that are available with SearchPanes. This includes showing sub-totals, cascading the panes, selecting which panes to show or hide and pre-selecting rows to name a few.
- SearchPanes › Disable Clear Buttons for PanesThis shows how to stop the clear buttons being displayed by setting the
searchPanes.clear
config option to befalse
.searchPanes.clear
istrue
by default. - SearchPanes › Pre-Select Rows with CascadeThis example shows how to set up the panes so that values are pre-selected, while
searchPanes.cascadePanes
is enabled. This is not something that was possible before version 2.0.0. Here the Office column is being targeted and told to pre-select 'Edinburgh' and 'London'. This is done by setting thesearchPanes.preSelect
option to be an array, and then setting the first object within that to contain arows
property, which is an array of strings representing the rows that are to be selected. Thecolumn
property indicates which pane the selection is to be made in. In the case that the row does not exist when SearchPanes tries to select it, be it because it was never present in the table orsearchPanes.cascadePanes
has removed it, nothing will be selected and SearchPanes will move to the next pane. It is important therefore to set the preselections in the correct order when usingsearchPanes.cascadePanes
. - SearchPanes › Cascade PanesThis SearchPanes example demonstrates the
searchPanes.cascadePanes
functionality. This allows the panes to be filtered based on the values selected in the other panes.searchPanes.cascadePanes
isfalse
as default. - SearchPanes › Ajax Loaded SearchPanes OptionsThis is the SearchPanes extension for DataTables. This example shows how SearchPanes can be populated via ajax, while using client-side processing. The SearchPanes options must be defined in the ajax json data for this to happen, otherwise SearchPanes will just extract the data from the table as usual. The structure of the JSON required is documented here under the "Returned Data" heading. It is worth noting that due to the requirements for users to provide accurate data for the SearchPanes options, neither
searchPanes.cascadePanes
orsearchPanes.viewTotal
are supported using this setup. While it is still possible to enable these options, it is not advised and may lead to unexpected behaviour. - SearchBuilder › Search on buttonIt can sometimes be useful, particularly with large data sets for performance reasons, to delay the search operation until the end user has set up the search they want and for them to then press a button that will trigger the search, applying it to the DataTables. This example shows the
searchBuilder.liveSearch
option, which provides exactly that ability. The search won't happen until you press the "Search" button at the bottom of the SearchBuilder interface.
Forum
- 13th Aug 2024Since 2.1.3 the searchpane has no longer full width when collapseda screenshot and the init code for your DataTable?
- 11th Aug 2024O datatable está a enviar os parâmetros, mas não consigo aceder a eles através da super global $_REQby posting your Datatables init code and relevant server
- 6th Aug 2024Searchbuilder 1.7+ Issue with Legacy DataTablesfunction at Criteria.initSelect [as init] (dataTables.searchBuilder.js:1046:30) at Criteria._clearValue (dataTables.searchBuilder.js:642:80)
- 9th May 2024Hiding columns via display: none breaks the layout in DataTables 2maybe an setting in init?). That way, it would
- 29th Jul 2024Remove only blue icon from loadingcode prior to your initial load. You will need
- 26th Jul 2024Datatables select2 editor issuethe following error on init Cannot read properties of
- 19th Jul 2024DataTables forum Markdown documentationto how api and init are tagged, but I
- 17th Jul 2024DataTables as an input with serverSideinput fully compatable with init serverSide = true? I know
- 18th Jul 2024Classnames in columns not appliedobject. This is the init code: function setupListTable() { console.log('setupListTable');
- 14th Jul 2024Child Editor when editing shows data from Parent editoreditor before the Datatables init code so that the