lazymule Posted February 25, 2014 Posted February 25, 2014 hi After the data is loadedHow can I auto-width columns Quote
aln02 Posted February 25, 2014 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
lazymule Posted February 25, 2014 Author 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
aln02 Posted February 26, 2014 Posted February 26, 2014 Maybe will useful wordwrap for demanded columns Quote
gerhard.kimmeringer Posted October 11, 2015 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
Sherzod Posted October 12, 2015 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
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.