abhimanyu Posted March 22, 2017 Share Posted March 22, 2017 How to change a Background color of selected row in UniDBGrid? 1 Link to comment Share on other sites More sharing options...
Sherzod Posted March 22, 2017 Share Posted March 22, 2017 Hi, Can you try this ?!: http://forums.unigui.com/index.php?/topic/5675-change-the-color-of-selected-row-in-unidbgrid/&do=findComment&comment=28973 Best regards. Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted March 22, 2017 Share Posted March 22, 2017 Hi For ALL UniDBGrids Add this to customCSS .x-grid-row-selected .x-grid-cell-inner { font-weight: bold; background-color:green; } For spesific UniDBGrid use this code: OnCreate event of Form Grid.JSInterface.JSCallGlobal('Ext.util.CSS.createStyleSheet', ['#'+Grid.JSName+'_id .x-grid-row-selected .x-grid-cell-inner { font-weight: bold; background-color:blue; color: white;}', Grid.JSName+'_css' ]); OnDestroy event of Form Grid.JSInterface.JSCallGlobal('Ext.util.CSS.removeStyleSheet', [ Grid.JSName+'_css' ]); 1 Link to comment Share on other sites More sharing options...
zemorango Posted October 13, 2018 Share Posted October 13, 2018 On 3/22/2017 at 3:26 PM, Hayri ASLAN said: Hi For ALL UniDBGrids Add this to customCSS .x-grid-row-selected .x-grid-cell-inner { font-weight: bold; background-color:green; } For spesific UniDBGrid use this code: OnCreate event of Form Grid.JSInterface.JSCallGlobal('Ext.util.CSS.createStyleSheet', ['#'+Grid.JSName+'_id .x-grid-row-selected .x-grid-cell-inner { font-weight: bold; background-color:blue; color: white;}', Grid.JSName+'_css' ]); OnDestroy event of Form Grid.JSInterface.JSCallGlobal('Ext.util.CSS.removeStyleSheet', [ Grid.JSName+'_css' ]); Great Work Hayri, It works like Magic, thanks Link to comment Share on other sites More sharing options...
vlkc Posted October 14, 2018 Share Posted October 14, 2018 Hello, does not work for me. What should I check? Link to comment Share on other sites More sharing options...
Sherzod Posted October 14, 2018 Share Posted October 14, 2018 19 minutes ago, vlkc said: Hello, does not work for me. What should I check? Hello, Which build, theme are you using ? 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