PowerGrid column resize

Forum to discuss the new web client version of Servoy.

PowerGrid column resize

Postby vito.gallo83 » Fri Nov 25, 2022 1:24 pm

Hi,
we got an issue with powerGrid column/grid resizing.
We have a grid with 3 columns (grid B), which one of those is hided on need.
The columns are shown or hided due to another grid (grid A) selection.
The problem is that, when the grid B switch between 2 or 3 columne, the horizontal navigation bar happear in the gird.
This doesn't happen when you first show the grid with 2 or 3 columns.

When I first select in grid A a row which have 2 columns in grid B the columns are shown normally, with no horizontal navigation bar
grid_2_columns_first_show.jpg


After I select a row in grid A which have 3 columns in grid B, the grid B show the horizontal navigation bar
grid_3_columns_after_2_col_click.jpg


Vice versa, if I open a new NG client, and select a row in grid A which have 3 columns in grid B, it show fine, without any horizontal navigation bar
grid_3_columns_first_show.jpg


And then if I select in grid A a row which have 2 columns in grid B, the horizontal navigation bar happear.
(couldn't add another screenshot due to limit of 3 fils attachments)

Searching on the web I found that the AG-Grid API has a function which resize the columns: "api.sizeColumnsToFit()"
You can check at https://www.ag-grid.com/javascript-data ... ng-example

Now, I can't find a way to use the api to call the function to resize the columns: there is another way to resize the columns to the gird width after the third column has been shown/hided?

Thanks
You do not have the required permissions to view the files attached to this post.
vito.gallo83
 
Posts: 2
Joined: Mon Jul 18, 2022 5:28 pm

Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 6 guests