Sep 26, 2010, 8:54 PM
[CLOSED] [1.0] RemoteSort with IsComplex field
Hello,
When I have the following:
I have IsComplex set on the field.
Let me know when corrected in SVN and I will confirm -- or let me know if my assumption is incorrect.
Much appreciated.
Cheers,
Timothy
When I have the following:
<ext:GridPanel runat="server">
<Store>
<ext:Store runat="server"
AutoLoad="true"
RemoteSort="true">
<BaseParams>
<ext:Parameter Name="limit" Value="8" Mode="Raw" />
<ext:Parameter Name="start" Value="0" Mode="Raw" />
<ext:Parameter Name="dir" Value="ASC" />
<ext:Parameter Name="sort" Value="Company.CompanyName" />
</BaseParams>
<Proxy>
<ext:HttpProxy Json="true" Method="POST" Url="..." />
</Proxy>
<Reader>
<ext:JsonReader IDProperty="Id" Root="data">
<Fields>
<ext:RecordField Name="Id" />
<ext:RecordField Name="CompanyName" IsComplex="true" ServerMapping="Company.CompanyName" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
</Store>
<ColumnModel>
<Columns>
<ext:Column ColumnID="CompanyName" DataIndex="CompanyName" Header="Company" />
</Columns>
</ColumnModel>
</ext:GridPanel>
Works on initial load; CompanyName is sorted properly since I'm sending Company.CompanyName as a base parameter. However, when I click the Company column header to change sort order the Store is sending "CompanyName" instead of "Company.CompanyName" ;)I have IsComplex set on the field.
Let me know when corrected in SVN and I will confirm -- or let me know if my assumption is incorrect.
Much appreciated.
Cheers,
Timothy
Last edited by Daniil; Sep 29, 2010 at 12:12 AM.
Reason: [CLOSED]