227
Views
3
Comments
Dynamic column in table records with fixed width
Question

Hi,

I have table record on my screen and displaying columns dynamically using extended properties. I need to give fixed width of columns but when columns are getting hidden, blank space (space of hidden columns) is appended on right side of screen.


Please provide solution to hide blank space dynamically but UI needs to be friendly.

2016-04-22 00-29-45
Nuno Reis
 
MVP

Hi Rupal.

By default, the table would stretch to fil the available space. If you  don't want that, you can add Margin:auto to the table so it will center.

UserImage.jpg
Rupal Agrawal

Nuno Reis wrote:

Hi Rupal.

By default, the table would stretch to fil the available space. If you  don't want that, you can add Margin:auto to the table so it will center.


Hi Nuno,

Thanks for your reply. I don't find any table stretching thing here, I have attached screenshot of space shown on screen. This space is of hidden columns.


2016-04-22 00-29-45
Nuno Reis
 
MVP

I don't see an image...


Set the table css with margin: auto; width: 10px;

This will make the width of the columns override the table width to fit.

Disclaimer: this is not ideal, but table width as been deprecated so I have no idea why OS still uses it instead of min/max width.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.