Jump to content

Panel collapsible yes/no at runtime


bbm

Recommended Posts

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;

 

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

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,

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