Author Topic: Style can be set in ColModel. But why can't the font size be adjusted?  (Read 147 times)

necatiozbek

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 19
    • View Profile

I want to unconditionally change the font size of certain columns,
I can achieve this with the Grid.colModel[1].render function.
If this could be done in ColModel, there would be no need to write an extra render function.


var colModel= [
                        {
                            dataIndx: "FATURA",title: "Fatura"
                           
                             style:{
                             'font-style':'italic',         //>  working
                             'font-family':'Verdana',  //>  working
                             'text-align':'center',      //>  working
                             'color':'blue',                //>  working
                             'font-size':'8px'             //>  not working
                             }
                        },

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
font-size can also be set with column.style and it works fine.