artem_niko Posted November 19, 2022 Share Posted November 19, 2022 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: Link to comment Share on other sites More sharing options...
Sherzod Posted November 19, 2022 Share Posted November 19, 2022 15 minutes ago, artem_niko 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; 1 Link to comment Share on other sites More sharing options...
artem_niko Posted November 19, 2022 Author Share Posted November 19, 2022 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! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now