dbf_usr Posted June 13, 2020 Posted June 13, 2020 Как задать цвет фона и шрифта для фильтров в DBGrid? Quote
Sherzod Posted June 13, 2020 Posted June 13, 2020 20 minutes ago, dbf_usr said: Каким образом меняете цвет фона на данный момент? Quote
dbf_usr Posted June 13, 2020 Author Posted June 13, 2020 On 6/13/2020 at 2:11 PM, Sherzod said: Каким образом меняете цвет фона на данный момент? меняю так: Quote
Sherzod Posted June 13, 2020 Posted June 13, 2020 33 minutes ago, dbf_usr said: меняю так: Какую тему Вы используете? Quote
dbf_usr Posted June 13, 2020 Author Posted June 13, 2020 3 minutes ago, Sherzod said: Какую тему Вы используете? triton.modified Quote
Sherzod Posted August 12, 2020 Posted August 12, 2020 1 hour ago, dbf_usr said: UP Hello, Sorry for the late reply. Try this approach for now: 1. UniDBGrid1.ClientEvents.UniEvents - > function beforeInit(sender, config) { sender.correctBGColor = function () { sender.headerCt.getGridColumns().forEach(function(header) { var bgcolor = header.titleEl.getStyle('background-color'); if (bgcolor && bgcolor !== 'transparent') { header.el.select('[data-ref="innerCt"]').setStyle('background-color', bgcolor) } }); sender.correctBGColor = Ext.emptyFn; }; } 2. procedure TMainForm.UniFormReady(Sender: TObject); begin UniDBGrid1.JSInterface.JSCall('correctBGColor', []); end; 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.