Search
10784 results 171-180
Examples
- SearchPanes › View totals and subtotalsThis example demonstrates the
searchPanes.viewTotaloption. 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.viewTotalisfalse. - 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.preSelectoption to be an array with an object that contains arowsproperty which indicates which rows are to be selected, and acolumnproperty which indicates which pane the selection should be made in. - SearchPanes › Change SearchPanes LayoutThis example demonstrates the
searchPanes.layoutoption. This option allows you to define how many panes are displayed in one row before a new line is taken. The default isautowhich 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.clearconfig option to befalse.searchPanes.clearistrueby default. - SearchPanes › Pre-Select Rows with CascadeThis example shows how to set up the panes so that values are pre-selected, while
searchPanes.cascadePanesis 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.preSelectoption to be an array, and then setting the first object within that to contain arowsproperty, which is an array of strings representing the rows that are to be selected. Thecolumnproperty 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.cascadePaneshas 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.cascadePanesfunctionality. This allows the panes to be filtered based on the values selected in the other panes.searchPanes.cascadePanesisfalseas 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.cascadePanesorsearchPanes.viewTotalare 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.liveSearchoption, which provides exactly that ability. The search won't happen until you press the "Search" button at the bottom of the SearchBuilder interface.
Forum
- 12th Sep 2024How do I reset the table sort to initial sort order@kthorngren -- that's exactly what I'm looking for. I hadn't even thought about init() since I was doing a search through the API for "order". @allan -- I still encourage a built-in method! Thanks!
- 10th Sep 2024Range filter (only for dates) on column footerMove the code to init the text input event
- 6th Sep 2024Delete in Edit popup, and Copyval) {conf._rawHtml = val; conf._div.html(val);}, init: function(conf) {}, disable: function(conf) {} }; //--- END
- 5th Sep 2024Code broken after updating to latest libsthe code into either initComplete or init so it runs only
- 2nd Sep 2024Javascript example not working for meto place the Datatables init code in $( document ).ready()
- 1st Sep 2024Create a serie for a chart with the values of the row groupingsequentially after the Datatables init code. If you are
- 3rd Sep 2024Export all row without drawing all rowpost your full Datatables init code. Better is a
- 2nd Sep 2024type render in SSP not working since 2.1.xeach column explicitly on init. At least the custom
- 26th Aug 2024Resolve(false) in promise after initEdit does not stop editor from openingHi, The initEdit event is not cancellable
- 24th Aug 2024Ordering sequence plugin assign classinit() will get you the initialisation object without needing to