Jump to content

Form Resize containing UniDBGrid


edbuescher

Recommended Posts

I have a secondary (not main) form that contains a UniDBGrid with align=alClient. The form RESIZE only works if the Grid has less than 50 records displaying, or 49 records plus a summary record.

If 50 or more records are being displayed in the grid, then  I can resize the form ONCE, but the grid inside the form will not resize.  This happens whether or not the grid is "paged." If I then close the form, but don't exit the session, then when I try to open the form again it does not render properly, but just shows a "blue" colored blank form.

I'm trying to display 350 records, which works fine as long as I don't resize the form. If I filter a column to only show <50 records, the resize works, so the issue has to do with how many records are being displayed, not how many total records there are in the underlying dataset.

One strange issue is that even though I am not using the "paging" feature of the grid, when I change the PageSize to something greater than 25, then I can resize the form when there are 50 records being displayed, but it still fails when displaying a few more than 50.

I am on V 1.90.0.1554

Thanks for any help

Link to comment
Share on other sites

19 hours ago, edbuescher said:

I have a secondary (not main) form that contains a UniDBGrid with align=alClient. The form RESIZE only works if the Grid has less than 50 records displaying, or 49 records plus a summary record.

If 50 or more records are being displayed in the grid, then  I can resize the form ONCE, but the grid inside the form will not resize.  This happens whether or not the grid is "paged." If I then close the form, but don't exit the session, then when I try to open the form again it does not render properly, but just shows a "blue" colored blank form.

I'm trying to display 350 records, which works fine as long as I don't resize the form. If I filter a column to only show <50 records, the resize works, so the issue has to do with how many records are being displayed, not how many total records there are in the underlying dataset.

One strange issue is that even though I am not using the "paging" feature of the grid, when I change the PageSize to something greater than 25, then I can resize the form when there are 50 records being displayed, but it still fails when displaying a few more than 50.

Hello,

Could you create a test project to understand what's not working?

Link to comment
Share on other sites

20 hours ago, edbuescher said:

I have a secondary (not main) form that contains a UniDBGrid with align=alClient. The form RESIZE only works if the Grid has less than 50 records displaying, or 49 records plus a summary record.

If 50 or more records are being displayed in the grid, then  I can resize the form ONCE, but the grid inside the form will not resize.  This happens whether or not the grid is "paged." If I then close the form, but don't exit the session, then when I try to open the form again it does not render properly, but just shows a "blue" colored blank form.

I'm trying to display 350 records, which works fine as long as I don't resize the form. If I filter a column to only show <50 records, the resize works, so the issue has to do with how many records are being displayed, not how many total records there are in the underlying dataset.

One strange issue is that even though I am not using the "paging" feature of the grid, when I change the PageSize to something greater than 25, then I can resize the form when there are 50 records being displayed, but it still fails when displaying a few more than 50.

I am on V 1.90.0.1554

Thanks for any help

Hello,

On topics related to alignment, you can find this advice :

With unigui, don't use the classical VCL Alignment. Use instead the new layout :

ServerModule: MainFormDisplayMode:= mfPage

Mainform > ClientAligment

Link to comment
Share on other sites

6 minutes ago, edbuescher said:

When I wrote a small test app I couldn't duplicate the problem, so to fix the issue, I rebuilt my form and the issue "mostly" went away. By "mostly" I mean that every once in a while I see the same behaviour but it's very random.

What browser are you using?
Can you test on other browsers as well?

Link to comment
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...