Ag-grid (Community Version) Pagination Text Custom - ag-grid

with the Ag-grid (Community Version) with filtering enabled, I would like to customize the Pagination text.
If the grid has five rows the standard pagination text is: 1 to 5 of 5
With no filtering applied, I would like the pagination text to be: Showing 1 to 5 entries.
With filtering applied and 2 rows qualify, I would like the pagination text to be: Showing 1 to 2 entries (filtered from 5 total entries).
Can someone please help with this? I would greatly appreciate any assistance.

This is not possible using ag-Grid's native pagination controls. Best solution would be to create your own custom pagination controls and display your desired text there.

Related

Ag-Grid rowSpan and autoHeight

We've encouterred a problem where we need to use rowSpan and autoHeight (or any kind of dynamic height) for a cell in tandem.
According to the docs, autoHeigth is not supported when using rowSpan: https://www.ag-grid.com/archive/27.1.0/react-data-grid/row-spanning/#constraints-with-row-spanning
Our scenario:
We have a grid, where the first column is a "grouping" column, and the next columns are for "children" properties. E.g.: United States has 4 athletes, so the first column would span 4 rows, and the others 1. The issue is, we need to show more information in the first column, and it works ok if there are 2 or more "children" - the information fits in the cell, but when there is only 1 "child", the 1st column only spans 1 row and the information's does not fit. Some kind of mechanism is needed to make the row higher when, let's say rowSpan is less than 2.
Here's the a simple plunker to represent the scenario: https://plnkr.co/edit/lSO9tOKPfsBmrzPC
As seen in the screenshot, the cell contents do not fit, on row 5 (2 based on the 1 column rowSpan)
Since autoHeight is not supported when using rowSpan, has anyone encountered a similar scenario and has a suggestion for a workaround for dynamic height?

Style for making a Marketo Checkbox 2 columns (mktoCheckboxList)

I am trying to make a Marketo form 2 columns and everything works well by simply dragging and creating a 2 column layout besides the checkboxes. There are many resources about making Marketo forms responsive but they all exclude the ckeckboxes.
The class I would like to make 2 column is mktoCheckboxList. Any help is greatly appreciated.

Is it possible for MS Word document to have multiple paging groups?

I'm sorry, I don't know what is the proper term for it. But I want to have multiple paging group in my documents. For example, the first 3 pages have their own separate pagination. like page 1 of 3, page 2 of 3, 3 of 3. Then the next 2 pages will have their own paging - 1 of 2, 2 of 2. And so on and so forth. If yes, what is the proper term for it and how to do it using Open XML SDK? Also during merging multiple documents, how to retain these paging? Thanks!
You can insert section breaks.
Within a section you can either continue the page numbering from the previous section or start page numbering with a selected page number. See menu Layout.

ag-grid: Max columns supported in Multi column sorting

I am using ag-grid-community v19.1.4 with AngularJS1.x and I'm planning to use the multi-column sorting feature.
I would like to know if there is a maximum number of columns that can be sorted supported by ag-grid or if there is a recommended maximum?
I have checked the official ag-grid documentation
https://www.ag-grid.com/javascript-grid-sorting/
But, it does not mention of any limits.
It is possible to sort by multiple columns. The default action for multiple column sorting is for the user to hold down shift while clicking the column header.
The property multiSortKey='ctrl' is set so multiple column selection is achieved by holding down Control and selecting multiple columns.
However AG-Grid has not mentioned the limits on the multiple columns which can be sorted.
I tried with 100 plus columns and it works like a charm. I beleive you will not be doing a multi sort on more than this :)
Refer my plunker link with 500 columns grid
MultiColumnSort

Displaying a 'Top Result' with Algolia?

I want to search 3 different indices at once, breaking out their results into 3 separate sections.
Above these 3 sections though, I want to display a 4th section with a single result row, and this section will be titled "Best Result".
It should take the best result of the 3 indices that most perfectly matches.
Does anyone know how I can achieve this? Thanks!
By design, when the ranking of each index is properly set (both attributeToIndex, and customRanking settings filled), the Algolia engine returns the most relevant et popular results for each new search request. First the one without typos and with perfect matches, then the others...
Which mean that if you want to display all the top results on a single page, you only need to take the N first result of each index.
Then it's just a matter of display. Like on the following websites, you can imagine to display those results into multiple columns:
http://telly.com/
Prototype built using the TED API
Feel free to look at tips about the best way to display result hits in multiple columns using Algolia and Bootstrap 3
Beside that you can also consider passing the getRankingInfo=1 parameter with your search query, and filter the results displayed accordingly to the matching info returned for each hit within the _rankingInfo property.
firstMatchedWord: 2000
geoDistance: 0
geoPrecision: 1
nbExactWords: 2
nbTypos: 0
proximityDistance: 1
userScore: 9499
words: 2