Jump to content

Recommended Posts

Posted
3 hours ago, bbm said:

How can I switch a panel collapsible on and off at runtime? Collapsible = False does not work.

Hi,

Can you try this approach for now?

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  with UniPanel1 do
  begin
    Collapsible := not Collapsible;
    JSInterface.JSCall('setCollapsible', [Collapsible]);
  end;
end;

 

Posted

Hi Sherzod,

I have another problem with the solution.

When I use

    Collapsible := not Collapsible;
    JSInterface.JSCall('setCollapsible', [Collapsible]);

the pager of a uniDBGrid, placed at the panel, is not visible anymore.

Is there any way to bring the pager visible again?

Best regards,

Posted

Hi,

The problem is that the application has gotten pretty powerful now. It may be due to the design of the application.

For this reason, a test case does not seem to me to be effective.

Is it possible to switch the pager on and off via JavaScript?

 

Best regards,

Posted

Hi,

I mean to make the pager visible or unvisible with JavaScript.

The idea is to make a work arround to make the pager visible.

Best regards,

Posted

Hi

As a workaround, it would also help if I left the panel collapsible and only prevented the panel from collapsing. Is it possible to do this?

Best regards,

image.png

Posted

Hi,

sorry, but I think the screenshots are a little confusing.

For me it will be OK, if the arrow for collapsing a panel is visible, and the collapsing can be prevented.

Is there any way?

Best regards

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