Title: how to add "formatter" using json? Post by: proffl on July 06, 2014, 03:53:27 AM hi, i'm now using properygrid for editing entity, here is my property json like below:
Code: string json = "{\"total\":6,\"rows\":["; Code: \"editor\":{\"type\":\"combobox\",\"options\":{\"valueField\":\"id\",\"textField\":\"name\",\"url\":\"/Icon.aspx\",\"groupField\":\"group\",\"formatter\":\"function(row){brbr}\"}}}"; how can i add formatter to the editor ? Title: Re: how to add "formatter" using json? Post by: jarry on July 06, 2014, 07:23:08 PM The 'formatter' must be defined in the columns definitions. Please try this:
Code: $('#pg').propertygrid({ Title: Re: how to add "formatter" using json? Post by: proffl on July 07, 2014, 07:30:21 AM thanks for the reply.
as i'm using propertygrid, and i just need one of my property's editor using formatter. so i extends the editor and add formatter to it's options then, fix the problem. |