Opened 10 years ago

Closed 6 years ago

#8263 closed defect (invalid)

[patch]dojox.grid.DataGrid does not honor sortDesc of cell

Reported by: rjones Owned by: rjones
Priority: blocker Milestone: future
Component: DojoX Grid Version: 1.2.2
Keywords: Grid Cc:
Blocked By: Blocking:

Description

ticket #6545 says that sortDesc has been added to structure cells, but sortDesc is not honored when the grid is created. Calling grid.getSortIndex() returns -1 when based on the defined structure it should return 1.

For example see http://www.sitepen.com/labs/code/grid/new_grid_features/border_container.html from http://www.sitepen.com/blog/2008/10/22/new-features-in-dojo-grid-12/.

Example is using 1.2.0 but I've also verified the same behavior in 1.2.3 using aol cdn. NOTE 1.2.3 is not an option for version.

Attachments (1)

datagrid-#8263.patch (1.3 KB) - added by evan 8 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 10 years ago by Bryan Forbes

Milestone: tbdfuture

comment:2 Changed 8 years ago by evan

It's not clear whether the 'sortDesc' was effective in the example since that column was images.

The attached "datagrid-#8263.patch" might be a better way for setting default single sorting order for a column, e.g.

//set default desc sorting order for 4th column
var grid = new dojox.grid.DataGrid({sortInfo:-4, ...});

Changed 8 years ago by evan

Attachment: datagrid-#8263.patch added

comment:3 Changed 8 years ago by evan

Summary: dojox.grid.DataGrid does not honor sortDesc of cell[patch]dojox.grid.DataGrid does not honor sortDesc of cell

comment:4 Changed 7 years ago by Colin Snover

Priority: highblocker

Bulk update of open ticket priorities.

comment:5 Changed 6 years ago by Kitson Kelly

Owner: changed from Bryan Forbes to rjones
Status: newpending

dojox/grid is now fully deprecated and not being actively developed. If you are still interested in this patch, if you could get it to apply cleanly against trunk and we can get it applied.

comment:6 Changed 6 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.