Mar 30, 2017, 7:23 AM
Store fills with whole object schema
Hello there,
I have the above store
I have the above store
<ext:Store ID="StoreCovers" PageSize="20" OnReadData="StoreCovers_ReadData" runat="server">
<Model>
<ext:Model ID="ModelCovers" runat="server" >
<Fields>
<ext:ModelField Name="ID" />
<ext:ModelField Name="CompanyID" />
<ext:ModelField Name="BranchID" />
<ext:ModelField Name="SubBranchID" />
<ext:ModelField Name="CoverDescription" />
<ext:ModelField Name="Active" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
and i am binding with a list of the above class data public int ID { get; set; }
public object Code { get; set; }
public int? CompanyID { get; set; }
public object CoverDescription { get; set; }
public int? StatusID { get; set; }
public int? UserID { get; set; }
public object UserTerminal { get; set; }
public object LastChangeDate { get; set; }
public int Active { get; set; }
public int BranchID { get; set; }
public int SubBranchID { get; set; }
public int? Gravity { get; set; }
public int GroupID { get; set; }
public int? ClaimObjectTypeID { get; set; }
public int LanguageID { get; set; }
public List<CoversAssistData> assist { get; set; }
public List<CoversPredictionsData> predictionValues { get; set; }
public CoverSapData sap { get; set; }
//public int? AssistSubranch { get; set; }
//public DateTime? AssistSubranchDateFrom { get; set; }
public List<TranslationsData> Translations { get; set; }
When i am getting data from the store, the store has the whole schema as json. But my model has only 5 fields. Is there any way to fill the store only with the data of the model?