dbf_usr Posted June 13, 2020 Share Posted June 13, 2020 Как задать цвет фона и шрифта для фильтров в DBGrid? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 13, 2020 Share Posted June 13, 2020 20 minutes ago, dbf_usr said: Каким образом меняете цвет фона на данный момент? Quote Link to comment Share on other sites More sharing options...
dbf_usr Posted June 13, 2020 Author Share Posted June 13, 2020 On 6/13/2020 at 2:11 PM, Sherzod said: Каким образом меняете цвет фона на данный момент? меняю так: Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 13, 2020 Share Posted June 13, 2020 33 minutes ago, dbf_usr said: меняю так: Какую тему Вы используете? Quote Link to comment Share on other sites More sharing options...
dbf_usr Posted June 13, 2020 Author Share Posted June 13, 2020 3 minutes ago, Sherzod said: Какую тему Вы используете? triton.modified Quote Link to comment Share on other sites More sharing options...
dbf_usr Posted August 12, 2020 Author Share Posted August 12, 2020 UP Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 12, 2020 Share 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 Link to comment Share on other sites More sharing options...
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.