Is there a way to add custom template. We need to just list two columns.

Answered
Mark Anderson asked on April 6, 2023

Hello,
 
We want to display a list records, having just 2 columns. 
Is there a was we could use any custom template or we can display only selected number of columns in order to save space. 
In the below attached image, we have data in just first 2 columns but the grid is also displaying the extra columns (Column 3 to 7).
 
Thanks

Attachments:
listing.png

2 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster April 7, 2023

Hello,

Thank you for reaching out to us.

We recommend wrapping the component's container with the other HTML element, which size will be used depending on the current component's configuration. Then override the CSS styling of empty cells to hide them:

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

You are welcome to check the following example for reference: https://jsfiddle.net/flexmonster/bae4x237/ 

Please let us know if it works for you. Feel free to contact us in case further questions arise.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster April 25, 2023

Hello Mark,

Hope you are doing well.

Just checking in to ask if you had a chance to check the suggested approach. Please let us know if it works for you.

Looking forward to hearing from you.

Kind regards,
Nadia

Please login or Register to Submit Answer