Results 1 to 2 of 2

Thread: Ext1.0alpha1: bug or no bug in grid sorting?

  1. #1

    Default Ext1.0alpha1: bug or no bug in grid sorting?

    Hi everybody,

    I started to use yui-ext last week (too impatient to wait for ext 1.0 :wink: ) and am now converting my 0.4alpha code to 1.0alpha. So far things are progressing nicely, but there is one thing which could be a bug or not. I've updated my grid according to the example and here is my record definition:
    Code:
    this.rec = Ext.data.Record.create([
      {name: 'id', mapping: 'mediaid', type:'int'},
      {name: 'name', mapping: 'name'},
      {name: 'size', mapping: 'info2'},
      {name: 'date', mapping: 'added'},
      {name: 'comment', mapping: 'comment'},
      {name: 'category', mapping: 'cat'},
      {name: 'location', mapping: 'loc'}
    ]);
    I use JSON with server side sorting and a HttpProxy in my Store. The problem/bug I see is that I get the name and not (as I would expect) the mapping of a record entry sent as 'sort' to my retrieving php script. So for example if I click on the Date column, my server gets "sort=date" instead of "sort=added".
    Is this intentional or a bug?

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956

    Default

    This is intentional. Mapping cannot be used for the sort column sent to the server because suppose you have an XML document and the mapping is "details/description:first-child". That obviously isn't very useful on the server.

Similar Threads

  1. Grid can't adapt to Borderlayout of Ext1.0
    By longracer in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 12 Mar 2007, 12:21 AM
  2. Paging grid sorting?
    By edmundfitz in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 8 Mar 2007, 7:07 AM
  3. [1.0a2 Rev 5] Grid sorting
    By Arikon in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 28 Feb 2007, 9:38 AM
  4. grid dataIndex and sorting
    By ericwaldheim in forum Ext 1.x: Bugs
    Replies: 10
    Last Post: 9 Oct 2006, 7:57 AM
  5. Sorting the Grid
    By Animal in forum Ext 1.x: Help & Discussion
    Replies: 13
    Last Post: 4 Oct 2006, 3:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •