abhimanyu Posted March 22, 2017 Share Posted March 22, 2017 How to change a Background color of selected row in UniDBGrid? 1 Quote 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. Quote 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 Quote 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 Quote 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? Quote 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 ? 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.