Maybe I will show what is the goal. With Table our columns were displayed in following way [1]. In following DG [2] I do have percentWidth="100", cause I wanted to have it stretched to full.
<j:DataGrid percentWidth="100"> I wanted to display my DataGrid in exactly same way as my table [1]. In table columnWidth didn't work so the way how Table look like on my screenshot is just the way how it behaves and display when it's width: 100%. If I have following code [3] when columnWidth is setup for some columns I should get following results [4] - This is how DataGrid behaves in Flex with the same code. [1] https://ibb.co/yP8GLgx [2] https://ibb.co/rFNLqqg [3] https://paste.apache.org/crmem [4] https://ibb.co/RbnTptY Thanks, Piotr wt., 3 mar 2020 o 18:27 Piotr Zarzycki <[email protected]> napisał(a): > I think I understand what you did with column. If DataGrid has percentage > width columns are also have precent width. If there is no width setup in > DataGrid than columnWidth is being translated to pixel width. > > So there is no way to have proper looking DataGrid when we have following > code -> https://paste.apache.org/e6jrs > > > > wt., 3 mar 2020 o 17:41 Piotr Zarzycki <[email protected]> > napisał(a): > >> Hi Carlos, >> >> I have started evaluate DataGrid as a replacement to Table in our >> application. However I have found that columnWidth is being translated to >> percentage value, which I think is some kind of bug. Following code: >> >> <j:DataGridColumn columnWidth="80" /> >> >> Is translated to >> >> <div style="width: 80%;"></div> >> >> What's your thoughts about this ? >> >> Thanks, >> -- >> >> Piotr Zarzycki >> >> Patreon: *https://www.patreon.com/piotrzarzycki >> <https://www.patreon.com/piotrzarzycki>* >> > > > -- > > Piotr Zarzycki > > Patreon: *https://www.patreon.com/piotrzarzycki > <https://www.patreon.com/piotrzarzycki>* > -- Piotr Zarzycki Patreon: *https://www.patreon.com/piotrzarzycki <https://www.patreon.com/piotrzarzycki>*
