Working on reconfiguring ExtJS via JSON metadata, found out that I need to provide some javascript functions as part of configuring the columns again.
The functions don't get interpreted as functions if they're encased in quote marks, so is it possible to return a JSON with un-quotemarked values?
Ideally I would have something like
{"d":{
"metaData": {
"root": "d.data",
"fields": [{
"type": "date",
"name": "Date",
-->"renderer": formatDate,
"dateFormat": "c",
"convert": function (newValue, model) {
return Ext.Date.parse(newValue, "MS");<--
},
"header": "Date",
"dataIndex": "Date"
}, {
"type": "string",
"name": "Notes",
"header": "Notes",
"dataIndex": "Notes"
}, {...
I'm also working with C#, so would I return the JSON as a Dictionary<string,object>
?