Get Free Trial

Possibility to set the cell width or height for specified field

Gerd Tautenhahn asked on November 25, 2021


I’ve been using the flexmonster pivot grid for a while now and so far the experience has been great. Although I’m missing one functionality which was present in other libraries like DevExtreme PivotGrid. 

The problem is I would like to manipulate the dimensions of columns and / or rows, but the current setTableSizes() is not sufficient / too specific in most of the scenarios. I would like to have an option to provide a width or height value not for given index or complicated tuple, but directly assign it universally to the field itself (preferably by name).

For example when I would have a field called ‘Country’ with custom width and used it as a a column – all ‘Country’ columns rendered inside the pivot would have a custom width applied to them. Currently I’m not possible to do so without creating countless entries in setTableSizes() (with different indexes) or tuple without not specifying the correct measure. Another thing is that I really like to change my fields configuration and layout pretty often so setTableSizes() is not really convenient in such scenarios, since whenever I want to change the layout or anything like that, I also need to adjust the dimensions by using setTableSizes().
Would it be possible to achieve anything like that using the current state of the library? If not I would like to ask for such feature in one of the future releases.

1 answer

Nadia Khodakivska Nadia Khodakivska Flexmonster 6 days ago

Hello, Gerd,
Thank you for contacting us.
There is no such feature as setting the cell sizes for a specified field using the current state of the library. However, we added it to the customer’s wish list.
Alternatively, you can always change the default cell sizes using CSS rules:

.fm-cell {
min-width: 150px !important;

You are welcome to write to us in case further questions arise.
Kind regards,

Please login or Register to Submit Answer