Title: datagrid: font size Post by: korenanzo on July 24, 2018, 04:06:18 AM Hi all,
I'd like to set the font style of a datagrid programmaticlaly, and let the datagrid to set its measures up according to it. in textboxes I can do it with something like $(textbox).css('font-size', size) but what about datagrid? thanks, RIc Title: Re: datagrid: font size Post by: stworthy on July 24, 2018, 06:08:00 PM This is the extended method to change the styles for the datagrid.
Code: $.extend($.fn.datagrid.methods, { Usage example: Code: $('#dg').datagrid('setStyles', { Title: Re: datagrid: font size Post by: korenanzo on July 25, 2018, 01:59:30 AM thanks stworthy
this code anyway does not afect the size of the rows: if I set the fontsize smaller, the row height remains the same; I have noticed that in easyui.css there is .datagrid-row { height: 25px; } How to change it accordingly with the new font size? thanks, RIc Title: Re: datagrid: font size Post by: stworthy on July 25, 2018, 05:31:52 AM Please look at this example http://code.reloado.com/asifoq4/2/edit#preview. The font size and row height can be modified at runtime.
Title: Re: datagrid: font size Post by: korenanzo on July 25, 2018, 05:49:15 AM thanks!
|