Jump to content

UniDBGrid Column autowith


lazymule

Recommended Posts

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

  • Upvote 2
Link to comment
Share on other sites

  • 1 year later...

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) then
UnimDBGrid1.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..

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...