dbf_usr Posted June 13, 2020 Share Posted June 13, 2020 Как задать цвет фона и шрифта для фильтров в DBGrid? 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: Каким образом меняете цвет фона на данный момент? 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: Каким образом меняете цвет фона на данный момент? меняю так: 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: меняю так: Какую тему Вы используете? 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 Link to comment Share on other sites More sharing options...
dbf_usr Posted August 12, 2020 Author Share Posted August 12, 2020 UP 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 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