Cristian87 Posted October 27, 2021 Share Posted October 27, 2021 How can I set the autofit of a column in a UnimDBListGrid? Or the width same of the page. If I set an high width and I set DisclosureIcon on True, the icon (arrow) is not visible. Any solution? Link to comment Share on other sites More sharing options...
Sherzod Posted October 27, 2021 Share Posted October 27, 2021 Hello, In which build are you testing? Link to comment Share on other sites More sharing options...
Cristian87 Posted October 27, 2021 Author Share Posted October 27, 2021 The last. 1.90.0.1554 Link to comment Share on other sites More sharing options...
Cristian87 Posted October 27, 2021 Author Share Posted October 27, 2021 If column have low width the icon is visible If column have high width the icon is not visible I need width as the widht page and it must change on resize Link to comment Share on other sites More sharing options...
Sherzod Posted October 27, 2021 Share Posted October 27, 2021 24 minutes ago, Cristian87 said: Are you showing one column? Link to comment Share on other sites More sharing options...
Cristian87 Posted October 27, 2021 Author Share Posted October 27, 2021 I have only one column. Now I resolve with Quote UnimDBListGrid1.Columns[0].Width:=UnimDBListGrid1.Width but is there an other way? Link to comment Share on other sites More sharing options...
Sherzod Posted October 27, 2021 Share Posted October 27, 2021 14 minutes ago, Cristian87 said: but is there an other way? Another possible solution is using CSS. Link to comment Share on other sites More sharing options...
Cristian87 Posted October 27, 2021 Author Share Posted October 27, 2021 How? Link to comment Share on other sites More sharing options...
Sherzod Posted October 27, 2021 Share Posted October 27, 2021 32 minutes ago, Cristian87 said: How? Try this approach: function beforeInit(sender, config) { config.itemTpl = new Ext.XTemplate('<table style="width:100%; vertical-align:middle;">' + '<tr>' + '<td>{0}</td>' + '</tr>' + '</table>' ); } Link to comment Share on other sites More sharing options...
Cristian87 Posted October 28, 2021 Author Share Posted October 28, 2021 It works!!! Thanks!!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts