Jump to content

How to make a deactivated UniDBGrid without a gray background


artem_niko

Recommended Posts

Good afternoon!
How can I make it so that when you set the UniDBGrid.Enabled property:=False, then the component would not turn gray, but would remain as with the UniDBGrid.Enabled property:=True, but was not available for any actions on the part of users?
Otherwise, the information in it is less visible:

image.png.f9dc9161cc5dff1a85b38b8d541566d1.png

Link to comment
Share on other sites

15 minutes ago, artem_niko said:

image.png.f9dc9161cc5dff1a85b38b8d541566d1.png

Hello,

One possible solution:

1. CustomCSS ->

._disabledCls .x-mask {
    background-color: transparent;
}

2. OnFormCreate ->

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  UniDBGrid1.JSInterface.JSConfig('disabledCls', ['_disabledCls']);
end;

 

  • Thanks 1
Link to comment
Share on other sites

12 minutes ago, Sherzod said:

Hello,

One possible solution:

1. CustomCSS ->

._disabledCls .x-mask {
    background-color: transparent;
}

2. OnFormCreate ->

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  UniDBGrid1.JSInterface.JSConfig('disabledCls', ['_disabledCls']);
end;

 

Excellent! Perfect! :)

  • Like 1
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...