开发者

Listing record specific nested data from a single store

开发者 https://www.devze.com 2023-04-06 16:45 出处:网络
I have a store, model, scriptTagProxy and custom Reader that consumes some json(p). The json describes a collection of objects. Each parent object hasMany child objects.

I have a store, model, scriptTagProxy and custom Reader that consumes some json(p). The json describes a collection of objects. Each parent object hasMany child objects.

Is it possible to use an Ext.List to list all the children for a parent? - In my research it seems that you have to point a list at a store.

I would like alternatives to开发者_StackOverflow a nestedList.


Use store.filter('parentID', specificParentId); on the store that is binded to the list.

To change the items on the list to another parent clear the current filter first with store.clearFilter(false);

0

精彩评论

暂无评论...
验证码 换一张
取 消