Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#12490 closed enhancement (fixed) list widgets should support

Reported by: ykami Owned by: ykami
Priority: high Milestone: 1.7
Component: DojoX Mobile Version: 1.6.0
Keywords: 1.7-mobile Cc:
Blocked By: Blocking:


Add support for dynamic creation of list items using a datastore.

RoundRectList and EdgeToEdgeList should have the store property to connect to a datastore. But this functionality should be optional to keep the current list widgets small. Subclassing is preferable to directly adding the code to the existing widgets.

Change History (5)

comment:1 Changed 11 years ago by ykami

(In [24071]) Refs #12490 !strict. Added the EdgeToEdgeDataList? and RoundRectDataList?

comment:2 Changed 11 years ago by ykami

Resolution: fixed
Status: newclosed

RoundRectDataList and EdgeToEdgeDataList are subclass of RoundRectList and EdgeToEdgeList respectively. They take the store and query property to connect to a datastore just like dojox.grid.DataGrid. Actual implementation is in the _DataListMixin class. _DataListMixin implements onNew and onDelete for dynamic manipulation of the list items.

test_EdgeToEdgeDataList.html and test_RoundRectDataList.html are unit test cases.

comment:3 Changed 11 years ago by ykami

Resolution: fixed
Status: closedreopened

It doesn't work well. setStore() is broken. Cannot be called more than once.

comment:4 Changed 11 years ago by ykami

Resolution: fixed
Status: reopenedclosed

(In [24074]) Fixes #12490 !strict. setStore needed to call disconnect before doing connect.

comment:5 Changed 10 years ago by ykami

In [26385]:

Refs #12490 !strict The name of the onComplete handler should be onComplete.

Note: See TracTickets for help on using tickets.