EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: mzeddd on January 10, 2013, 10:40:05 AM



Title: 1.3.2 treegrid styler function
Post by: mzeddd on January 10, 2013, 10:40:05 AM
It seems like styler is not working in 1.3.2

I have the following column description which gives me bold and centered test in v1.3.1
Code:
{field:'tcState',title:'State',width:50,hidden:false,
    styler:function(value,row,index){ return 'font-weight:bold;text-align:center'; }
}

But in 1.3.2 it gives me only centered text but not bold

Any ideas?

Thanks


Title: Re: 1.3.2 treegrid styler function
Post by: stworthy on January 10, 2013, 12:37:18 PM
Please include the 'view-fix.js' file to solve this issue. This file fix and extend the styler functionality that supports any css styles.
Code:
	<script type="text/javascript" src="../../jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../view-fix.js"></script>


Title: Re: 1.3.2 treegrid styler function
Post by: mzeddd on January 11, 2013, 12:43:22 AM
Yes, it helps.

Thanks stworthy!