EasyUI Forum
April 24, 2024, 04:13:42 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Combogrid grid row height  (Read 4591 times)
pratikk
Newbie
*
Posts: 49


View Profile Email
« 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.
« Last Edit: January 23, 2018, 09:24:50 PM by pratikk » Logged
shumakosik
Newbie
*
Posts: 15


View Profile
« Reply #1 on: January 23, 2018, 09:57:01 PM »

Try this:
Code:
$('.datagrid-row').css('height', '25px');
$('.combo-panel').css('height', '25px');
Logged
pratikk
Newbie
*
Posts: 49


View Profile Email
« Reply #2 on: January 23, 2018, 10:12:41 PM »

I tried that before. It is not working
Logged
pratikk
Newbie
*
Posts: 49


View Profile Email
« Reply #3 on: February 19, 2018, 09:44:28 PM »

Can somebody help me ??
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!