Opened 7 years ago

Closed 6 years ago

#17086 closed defect (patchwelcome)

EnhancedGrid only sortable on first column

Reported by: fditw Owned by: Evan
Priority: undecided Milestone: tbd
Component: DojoX Grid Version: 1.9.0rc2
Keywords: Cc:
Blocked By: Blocking:

Description

EnhancedGrid? only allows sorting on the first column. Click action on other columns is being treated as a resize column action. Works fine with DataGrid?, appears to only be affecting EnhancedGrid?.

var testGridData=[
   { myKey: 1,	myType: "fruit", myCol3: "a"},
   { myKey: 2,	myType: "veg", myCol3: "b"},
   { myKey: 3,	myType: "meat", myCol3: "c"}
];

var myStore=new ObjectStore({objectStore: new MemoryStore({data:testGridData, idProperty: "myKey"})});

var testGridParams ={
     structure: [
                   { name: 'key', field: 'myKey'},
		   { name: 'type', field: 'myType'},
                   { name: 'col3', field: 'myCol3'}
		],
      store: myStore
};

Change History (5)

comment:1 Changed 7 years ago by fditw

var testGrid = new EnhancedGrid(testGridParams,document.createElement('div'));
testGrid.placeAt("exampleGrid").startup();

comment:2 Changed 7 years ago by fditw

Only seems to be occurring in Firefox (20.0.1)...Chrome & IE appear to function as desired.

Last edited 7 years ago by fditw (previous) (diff)

comment:3 Changed 7 years ago by fditw

The version I'm currently using, dojo 1.8.0, also does not seem to be affected. Only when testing with 1.9.0rc2. I haven't tried any versions between.

Last edited 7 years ago by fditw (previous) (diff)

comment:4 Changed 7 years ago by fditw

jsFiddle with example, using Dojo (nightly): http://jsfiddle.net/2bbbP/

Changing to version 1.8.3 resolves the issue.

comment:5 Changed 6 years ago by bill

Resolution: patchwelcome
Status: newclosed

DojoX Grid and EnhancedGrid? are deprecated in favor of dgrid and gridx.

You should upgrade your code to use one of those two grids.

We will consider patches to the old DojoX Grid code though.

Note: See TracTickets for help on using tickets.