cancel
Showing results for 
Search instead for 
Did you mean: 

Table in Dialog Fragment - Column size rendering problem

adrian_zguri
Explorer
0 Kudos
1,833

Hello everyone,

I have a small problem in rendering the size of the columns in a sap.ui.table.Table which is inside a Dialog (Fragment).

This happens if I set these parameters for the Dialog:

  showHeader="false"

  type="Standard"

  state="None"

  stretch="false"

  contentWidth="90%"

  contentHeight="90%"

  horizontalScrolling="false"

  verticalScrolling="false"

  resizable="false"

  draggable="false"

This is what I get:

Then if I change the property stretch="true" or contentWidth="100%" and contentHeight="100%" it works. It renders the columns with the same size.

The columns get rerendered if I make the Dialog resizable and I manually resize the dialog. It works even if I do an auto resize of the columns on the table.

The above tweaks are not an option for me unfortunately. I need to show a good stand of the table when the user opens the Dialog.

Is this a problem with Fragment rendering?

Thank you for your time

Adrian

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Zguri ,

Why can't you use sap.m.table ? they are responsive tables ... might be this solves your issue. sap.ui.table.Table is deprecated control ...

thanks

Viplove

adrian_zguri
Explorer
0 Kudos

Hi VIPLOVE,

I have used the sap.ui.table.Table everywhere in my project since I need to show a large amount of data (going against the Fiori principles, I know, but these are the requirements).

I need to use Tree Table and they inherit from sap.ui.table.Table so the sap.m.table is not a good option and as per sap.ui.table.Table documentation, I do not see anywhere that it is deprecated?!

Thanks anyway for your answer.