how to use fidGridlines and adjust pdf margins

Answered
Paul Schlichter asked on November 12, 2016
  1. In the new version 2.3, it seems like fitGridlines is not working. Can you provide a fiddle to show how it should work?
  2. I would like the margins in the exported PDF to be decreased. Is there a way to do that?

Thanks

7 answers

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster November 14, 2016

Hello Paul,
Thank you for your questions.
1.The fitGridlines attribute is currently unavailable. It is going to be fixed in future versions. We will prepare the example for you when it is ready.
2.Could you please send us a picture to make us sure about the margins?
Regards,
Dmytro.

Public
Paul Schlichter February 23, 2017

Is fitGridlines available in the latest version yet?

Public
Tanya Gryshko Tanya Gryshko Flexmonster February 24, 2017

Hello Paul,
Thank you for your question. For now, fitGridlines is unavailable. However, we have added the task to fix that to our backlog. We will inform you as soon as fitGridlines is ready.
Regards,
Tanya

Public
Libor Bohac August 31, 2023

Hello,
it is 6 years from last answer. Any update on fitGridlines?
Regards,
Libor

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster August 31, 2023

Hello, Libor!
 
Thank you for reaching out to us.
 
Kindly note that a lot of things have changed during these 6 years. Regarding the mentioned feature, we haven't restored the fitGridLines property.
However, now it is possible to hide the borders for empty cells using the following CSS styles:

.fm-empty {   
    border-right: none !important;  
    border-bottom: none !important;
}

We have prepared a JSFIddle example for visualization: https://jsfiddle.net/flexmonster/vd0ohf8x/.
 
Could you please let us know if the suggested approach works well for your case?
 
Kind regards,
Solomiia

Public
Libor Bohac September 1, 2023

Hi Solomiia,
I don't like the solution with hidding borders via CSS because cell is still selectable and header numbers are also visible for hidden cells.
I found solution from Illia in another thread and it looks like what we want.
https://www.flexmonster.com/question/how-to-remove-rows-and-columns/
Thanks,
Libor
 

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster September 1, 2023

Hello, Libor!

Thank you for getting back to us.

We are glad to hear that you have found the solution which satisfies your needs.

Feel free to contact us in case of any other questions.

Kind regards,
Solomiia

Please login or Register to Submit Answer