Try marking the summaryRenderer property with [JsonConverter(typeof
(MyConverter))] (see 
http://james.newtonking.com/projects/json/help/html/T_Newtonsoft_Json_JsonConverterAttribute.htm
)
And you'll have to implement a JsonConverter (see
http://james.newtonking.com/projects/json/help/html/T_Newtonsoft_Json_JsonConverter.htm)

On Aug 5, 11:03 am, Wayne Douglas <[email protected]> wrote:
> Hey
>
> I'm trying to serialize an ar object.
>
> it works fine but I need one of the properties of the serialized
> object to be a js method, not a string i.e.:
>
> <code>
> {
>        confGid: 'REQ',
>        header: 'Mins',
>        dataIndex: 'SysActualMins',
>        cmItemId: 'SysActualMins',
>        sortable: true,
>        summaryType: 'sum',
>        summaryRenderer: 'function(v ){      return v;  }',
>        hidden: false,
>        align: 'center'
>    }
> </code>
>
> I'd like to output:
>
> <code>
>
> {
>        confGid: 'REQ',
>        header: 'Mins',
>        dataIndex: 'SysActualMins',
>        cmItemId: 'SysActualMins',
>        sortable: true,
>        summaryType: 'sum',
>        summaryRenderer: function(v ){      return v;  },
>        hidden: false,
>        align: 'center'
>    }
>
> </code>
>
> Anyone know how to go about accomplishing this?
>
> --
> Cheers,
>
> w://
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to