[CLOSED] [1.0] RemoteSort with IsComplex field

  1. #1

    [CLOSED] [1.0] RemoteSort with IsComplex field

    Hello,

    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]
  2. #2
    Hi,

    GridPanel doesn't use Mapping or ServerMapping (which uses on the server side only and don't render at all). It uses Name only.
    You have to manually juxtapose passed sort Name to the required property.
    Mapping and ServerMapping are used for parsing the data only.
  3. #3
    Thanks please close this item -- I'll handle it from the server side.

    Cheers

Similar Threads

  1. [CLOSED] Limit IsComplex attribute on Store
    By FAS in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 10, 2012, 8:14 PM
  2. [CLOSED] RemoteSort method
    By gets_gui in forum 2.x Legacy Premium Help
    Replies: 19
    Last Post: Apr 20, 2012, 8:43 PM
  3. [CLOSED] GridPanel RemoteSort
    By Marcelo in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 28, 2011, 8:12 PM
  4. [CLOSED] IsComplex - remove the commas and check quantity
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 09, 2011, 9:51 AM
  5. [CLOSED] ServerMapping and RemoteSort
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Dec 17, 2009, 12:12 PM

Posting Permissions