Jump to content


Photo

Styling UniStringGrid


  • Please log in to reply
2 replies to this topic

#1 MarBar77

MarBar77

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 55 posts

Posted 12 March 2018 - 08:50 PM

I want to style UniStringGrid, but I have some problems,

 

1) First of all I assing own class to string grid using UniEvents:

 

function afterCreate(sender)
{
   sender.addCls('devStringGrid');
   sender.addBodyCls('devStringGrid');
}
 
2) in Custom CSS, I have tried several properties, but no one of them works:
 
eg.
 
.devStringGrid .x-panel-body-default{
  background: blue !important; 
  background-color: blue !important; 
}
 
.devStringGrid .x-grid-body{
  background: blue !important; 
  background-color: blue !important; 
}
 
and many many more :)
 
It is strange because I can stylize listboxes, panels, calendars etc. But StringGrid is annoying me. Maybe someone can put an example of styling StringGrid, I want to change background, font-size and selected cell color?

 


  • 0

#2 mos

mos

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 163 posts

Posted 12 April 2018 - 11:52 PM

Hi MarBar77,

 

  Did you find a solution to this as I am also trying to add some styling to the div .x-grid-cell-inner in a UniStringGrid but this doesn't seem to be working?


  • 0

#3 mohammad

mohammad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 823 posts
  • LocationKufur Kassem, Palestine

Posted 16 April 2018 - 08:32 PM

I don't think that there is easy way... I use the same technique as above. 


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users