Jump to content

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
Link to post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...