EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: tomb on August 22, 2014, 11:39:57 AM



Title: formatter/styler for PropertyGrid?
Post by: tomb on August 22, 2014, 11:39:57 AM
Seems like I can't set the formatter/styler properties on a PropertyGrid, even though it extends from the DataGrid?  Is there a way to do this anyway?


Title: Re: formatter/styler for PropertyGrid?
Post by: stworthy on August 22, 2014, 04:10:35 PM
You must specify the 'columns' property and add 'formatter' and 'styler' functions to each column.
Code:
 $('#pg').propertygrid({
    columns:[[
        {field:'name',title:'MyName',width:100,sortable:true},
        {field:'value',title:'MyValue',width:100,resizable:false}
    ]]
 })


Title: Re: formatter/styler for PropertyGrid?
Post by: tomb on August 23, 2014, 07:29:11 AM
Cool, thanks!  I somehow didn't make that connection and thought this only applies to the column row.