Hi,
I'm having the same problem. Which declare theNewtonsoft.Json.JsonIgnoreAttribute
Grid
<ext:Store ID="StoreExposicao" runat="server" AutoLoad="true" OnRefreshData="RefreshData1" RefreshAfterSaving="Auto" SerializationMode="Complex" >
<Reader>
<ext:JsonReader ReaderID="expId">
<Fields>
<ext:RecordField Name="expId"/>
<ext:RecordField Name="expIdCnr"/>
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
Grid.cs
protected void AtualizarGrid()
{
List<Exposicao> l = ExposicaoController.Retornar();
this.StoreExposicao.DataSource = l;
this.StoreExposicao.DataBind();
}
Class Exposicao
using System;
using System.Collections.Generic;
using System.Linq;
using Canoro.Model;
using NHibernate;
using Castle.ActiveRecord;
namespace Canoro.Model
{
[ActiveRecord("exposicao")]
public partial class Exposicao : ActiveRecordBase<Exposicao>
{
#region private fields
private int? _expId;
private Canario _expIdCnr;
private string _expIQR;
private double _expPreco;
private int? _expPontos;
private int? _expClassificacao;
#endregion
public Exposicao() { }
#region public properties
[PrimaryKey(PrimaryKeyType.Native, "expId")]
public int? expId
{
get { return _expId; }
set { _expId = value; }
}
[OneToOne]
public Canario expIdCnr
{
get { return _expIdCnr; }
set { _expIdCnr = value; }
}
[Property("expIQR")]
public string expIQR
{
get { return _expIQR; }
set { _expIQR = value; }
}
[Property("expPreco")]
public double expPreco
{
get { return _expPreco; }
set { _expPreco = value; }
}
[Property("expPontos")]
public int? expPontos
{
get { return _expPontos; }
set { _expPontos = value; }
}
[Property("expClassificacao")]
public int? expClassificacao
{
get { return _expClassificacao; }
set { _expClassificacao = value; }
}
#endregion
#region Consultas
public static List<Exposicao> FindAllExposicao()
{
Exposicao[] a = (Exposicao[])FindAll(typeof(Exposicao));
List<Exposicao> c = a.ToList();
return c;
}
public static Exposicao FindById(int id)
{
return (Exposicao)FindByPrimaryKey(typeof(Exposicao), id);
}
#endregion
}
}