[CLOSED] Cannot deserialize JSON object into type 'Ext.Net.SelectedRowCollection'
Code:
[JsonSerializationException: Cannot deserialize JSON object into type 'Ext.Net.SelectedRowCollection'.]
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue) +1749
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue) +92
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueNonProperty(JsonReader reader, Type objectType, JsonContract contract) +130
Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType) +94
Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) +47
Newtonsoft.Json.JsonSerializer.Deserialize(TextReader reader, Type objectType) +46
Ext.Net.GridPanel.LoadPostData(String postDataKey, NameValueCollection postCollection) +468
Ext.Net.PanelBase.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +53
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +8910120
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +878
I debug the ext.net source code
Ext.Net\Ext\Grid\GridPanel.cs line 363
Code:
if (this.SelectionModel.Primary is RowSelectionModel)
{
SelectedRowCollection ids = (SelectedRowCollection)serializer.Deserialize(sr, typeof(SelectedRowCollection));
(this.SelectionModel.Primary as RowSelectionModel).SetSelection(ids);
}
but sr is
Code:
{"RecordID":"ff75a118-ac53-40aa-846c-74012814d0d4","Name":"","RowIndex":3,"ColIndex":0}
it's somthing wrong? this is happen radomly. when I open a gridpanel again