hi, i'm now using properygrid for editing entity, here is my property json like below:
string json = "{\"total\":6,\"rows\":[";
json += "{\"name\":\"id\",\"value\":\""+ID+"\"}";
json += ",{\"name\":\"name\",\"value\":\"" + Name + "\",\"editor\":\"text\"}";
json += ",{\"name\":\"path\",\"value\":\"" + Url + "\",\"editor\":\"text\"}";
json += ",{\"name\":\"icon\",\"value\":\"<span class='icon " + Icon +
"'> </span>\",\"editor\":{\"type\":\"combobox\",\"options\":{\"valueField\":\"id\",\"textField\":\"name\",\"url\":\"/Icon.aspx\",\"groupField\":\"group\"}}}";
json += "]}";
and i wanna my icon's editor display icon image. instead of text, so i change editors to :
\"editor\":{\"type\":\"combobox\",\"options\":{\"valueField\":\"id\",\"textField\":\"name\",\"url\":\"/Icon.aspx\",\"groupField\":\"group\",\"formatter\":\"function(row){brbr}\"}}}";
but it seems javascript take "function(row){brbr}" as string instead of function.
how can i add formatter to the editor ?