EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: pratikk on January 23, 2018, 09:21:20 PM



Title: Combogrid grid row height
Post by: pratikk on January 23, 2018, 09:21:20 PM
Hi. Before I was using the code below
Code:
$('#cc').combogrid({
autoRowHeight: false,
onLoadSuccess: function(){
$(this).combogrid('grid').datagrid('getPanel').find('.datagrid-row').css('height','50px');
}
})

Now it is not working, giving error. I searched the forum pages and I found this code. It is working fine
Code:
<style>
.combo-panel .datagrid-row{
  height:25px;
}
</style>

Now the problem is I want users to decide the height. So how can I write the above style as  javascript code.


Title: Re: Combogrid grid row height
Post by: shumakosik on January 23, 2018, 09:57:01 PM
Try this:
Code:
$('.datagrid-row').css('height', '25px');
$('.combo-panel').css('height', '25px');


Title: Re: Combogrid grid row height
Post by: pratikk on January 23, 2018, 10:12:41 PM
I tried that before. It is not working


Title: Re: Combogrid grid row height
Post by: pratikk on February 19, 2018, 09:44:28 PM
Can somebody help me ??