lazymule Posted February 25, 2014 Share Posted February 25, 2014 hi After the data is loadedHow can I auto-width columns Quote Link to comment Share on other sites More sharing options...
aln02 Posted February 25, 2014 Share Posted February 25, 2014 Hi.You can make so:function OnReconfigure(sender, store, colModel){sender.headerCt.forceFit=true;}or, for specified columns:function OnReconfigure(sender, store, colModel){if (!sender.columnManager) {sender.columns[0].flex=1;} else {sender.columnManager.columns[0].flex=1;}}in unidbgrid.ClientEvents.ExtEvents 2 Quote Link to comment Share on other sites More sharing options...
lazymule Posted February 25, 2014 Author Share Posted February 25, 2014 @oleg Thanks for the answer sender.headerCt.forceFit=true; In this way, all the fields are stacked columnsI want to do According to the text in each column narrowing want to ownSee the example if you know what I mean https://drive.google.com/file/d/0B7FZOQbyFc-vNkRmeXU2Nno0UFk/edit?usp=sharing Quote Link to comment Share on other sites More sharing options...
aln02 Posted February 26, 2014 Share Posted February 26, 2014 Maybe will useful wordwrap for demanded columns Quote Link to comment Share on other sites More sharing options...
gerhard.kimmeringer Posted October 11, 2015 Share Posted October 11, 2015 And how i do this with Unimdbgrid on mobile devices? I have test it with OnScreenResize of Form:if AWidth>(UnimDBGrid1.Columns[0].Width+UnimDBGrid1.Columns[1].Width+Unimdbgrid1.Columns[2].Width+Unimdbgrid1.Columns[3].Width) thenUnimDBGrid1.Columns[1].Width:=AWidth-(UnimDBGrid1.Columns[0].Width+Unimdbgrid1.Columns[2].Width+Unimdbgrid1.Columns[3].Width);But if i do that i have 8 Columns, all twice, maybe it is a error in UnimDBGRid.. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2015 Share Posted October 12, 2015 Hi, While, maybe you need to analyze this link ?: http://abitofcoding.blogspot.com/2014/03/sencha-touch-grid-percentage-based-width.html... Best regards. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.