Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#6816 closed defect (fixed)

dojox.grid.DataGrid: Need way to get index of an item

Reported by: nathan Owned by: Bryan Forbes
Priority: high Milestone: 1.2
Component: DojoX Grid Version: 1.1.0
Keywords: Cc:
Blocked By: Blocking:

Description

For selecting based on items, it would be nice to have a function for getting an index of a given item. Bryan suggested calling it "getItemIndex". Initially, it will probably call grid._identity_map[grid.model.getIdentity(item)].idx"

Attachments (1)

DataGrid_getItemIndex.diff (903 bytes) - added by nathan 12 years ago.
Patch which implements getItemIndex - and uses it in the _onDelete function (avoid a crash in certain cases)

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by nathan

Component: GeneralDojoX Grid

comment:1 Changed 12 years ago by nathan

Owner: changed from nathan to Bryan Forbes

Changed 12 years ago by nathan

Attachment: DataGrid_getItemIndex.diff added

Patch which implements getItemIndex - and uses it in the _onDelete function (avoid a crash in certain cases)

comment:3 Changed 12 years ago by Nathan Toone

Resolution: fixed
Status: newclosed

(In [13795]) fixes #6816. Added in getItemIndex !strict

comment:4 Changed 11 years ago by bill

Milestone: 1.2

marking tickets closed in the last three months w/blank milestone to milestone 1.2.

Note: See TracTickets for help on using tickets.