Title: Datagrid Font Size Post by: getk on August 07, 2013, 05:13:58 AM Friends,
thanks for the support you provided so-far. I'm not able to change font size globally for the datagrid. (May be a silly issue from my side) Below is how I defined the datagrid. I'm using jquery-easyui-1.3.3 package. Currently I'm trying to change font-size within rowStyler and its not working !! "background-color" is working though correctly ! Code: $('#dg').datagrid({ I even tried while initiating the datagrid, but still its NOT working :-\ Code: <table id="dg" toolbar="#toolbar" style="height:620px; font-size:10px;" ></table> Where should i make amendments so as to change the font-size for the whole of datagrid? Title: Re: Datagrid Font Size Post by: stworthy on August 08, 2013, 12:47:55 AM To change font size for all cells, override the 'datagrid-cell' style:
Code: <style> To change font size for a column, use the 'formatter' function: Code: function formatField(value){ Title: Re: Datagrid Font Size Post by: getk on August 09, 2013, 04:30:17 AM Hi Stworthy,
You are a STAR !! thanks a lot mate Is there anyway, I can auto-adjust the cell height according to the font-size? ( I believe autoRowHeight is defaulted to true, but still the height remains the same for font-size 12px) |