Jump to content
uniGUI Discussion Forums
Sign in to follow this  
MarBar77

Styling UniStringGrid

Recommended Posts

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?

 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×