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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...