Jump to content

unipanel visible


jahlxx

Recommended Posts

function hide(sender, eOpts)
{
  //
  ajaxRequest(sender, '_hide', []);
}
procedure TMainForm.UniPanel1AjaxEvent(Sender: TComponent; EventName: string;
  Params: TUniStrings);
begin
  if EventName = '_hide' then
  begin
    //
    // Your logic
  end;

end;

 

Link to comment
Share on other sites

On 12/26/2018 at 6:26 PM, Sherzod said:

procedure TMainForm.UniPanel1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = '_hide' then begin // // Your logic end; end;

Hi.

Here, my code is execute a sql statement to load a grid, but screenmask is not shown.

The same code, in a button click, shows loading in screenmask, but ajaxevent doesn't.

How can I do this?

Thanks.

 

Link to comment
Share on other sites

Sorry, my english is not very good.

 

When I hide the panel, I generate an ajax event.

In the ajax event, I execute a query, but the screenmask is not shown.

I have 2 options:

- do it in the way you told me in the prior post

- set the screenmask.enabled of the panel to true

tested the second way, it works, but I don't know if its is the best way.

But now, works, thanks.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...