Jul 23, 2009, 11:44 AM
[CLOSED] Binding List(of Object) Parsing properties
Consider the following object:
Is there a way to stop this?
Class Order {
public int ID
public string Description
public string OtherDescription
}
If I create a List(of Order) and then bind it to the following store <ext:Store runat="server" ID="OrderStore" DataSourceID="">
<Reader>
<ext:JsonReader ReaderID="ID">
<Fields>
<ext:RecordField Name="ID"/>
<ext:RecordField Name="Description" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
When I bind this to a grid it seems to parse all properties even though they are not needed in the store, so my property OtherDescription, which is not used of referenced anywhere gets queried and causes multiple hits on the database.Is there a way to stop this?