-
19 Feb 2007 8:32 AM #1
Ext1.0alpha1: bug or no bug in grid sorting?
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:
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".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'} ]);
Is this intentional or a bug?
-
19 Feb 2007 9:04 AM #2
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
-
Grid can't adapt to Borderlayout of Ext1.0
By longracer in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 12 Mar 2007, 12:21 AM -
Paging grid sorting?
By edmundfitz in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 8 Mar 2007, 7:07 AM -
[1.0a2 Rev 5] Grid sorting
By Arikon in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 28 Feb 2007, 9:38 AM -
grid dataIndex and sorting
By ericwaldheim in forum Ext 1.x: BugsReplies: 10Last Post: 9 Oct 2006, 7:57 AM -
Sorting the Grid
By Animal in forum Ext 1.x: Help & DiscussionReplies: 13Last Post: 4 Oct 2006, 3:46 AM


Reply With Quote