Jump to content
uniGUI Discussion Forums
lazymule

UniDBGrid Column autowith

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

Share this post


Link to post
Share on other sites

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..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×