Apr 26, 2009, 6:27 PM
[CLOSED] RTE with new config property
I created an IconCombo class that inherits from ComboBox. *It has an extra IconClsField property. *After upgrade to v0.8, I am getting the following server error:
The extra property:
"Token PropertyName in state Property would result in an invalid JavaScript object."
** at Newtonsoft.Json.JsonWriter.AutoComplete(JsonToken tokenBeingWritten)
** at Newtonsoft.Json.JsonTextWriter.WritePropertyName(String name)
** at Coolite.Ext.Web.ClientConfig.WriteValue(String name, Object value) in C:\Program Files\Coolite\SVN\toolkit\Coolite.Ext.Web\Core\ClientConfig.cs:line 503
** at Coolite.Ext.Web.ClientConfig.ToExtConfig(PropertyInfo property, Object obj, ClientConfigAttribute attr, Object defaultValue) in C:\Program Files\Coolite\SVN\toolkit\Coolite.Ext.Web\Core\ClientConfig.cs:line 445
** at Coolite.Ext.Web.ClientConfig.Process(Object obj) in C:\Program Files\Coolite\SVN\toolkit\Coolite.Ext.Web\Core\ClientConfig.cs:line 169
The extra property:
** * * *<ClientConfig()> _
** * * *<Category("Config Options")> _
** * * *<DefaultValue("")> _
** * * *<Description("The underlying data icon to bind to this ComboBox.")> _
** * * *Public Property IconClsField() As String
** * * * * *Get
** * * * * * * *Return If(DirectCast(Me.ViewState("IconClsField"), String), "icon")
** * * * * *End Get
** * * * * *Set(ByVal value As String)
** * * * * * * *Me.ViewState("IconClsField") = value
** * * * * *End Set
** * * *End Property