EasyUI Forum
September 14, 2025, 01:09:25 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: formatter/styler for PropertyGrid?  (Read 9748 times)
tomb
Newbie
*
Posts: 14


View Profile
« 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?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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}
    ]]
 })
Logged
tomb
Newbie
*
Posts: 14


View Profile
« Reply #2 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.
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!