开发者

Adding a record to the store in specific place

Is there a way to add a record to the store after the specific 开发者_JAVA技巧record not using addSorted?


Check Ext.data.Store.insert(index) which allows you to insert a record at a specified index. Only thing you need is the index of the record you want to insert it after, thats what you have Ext.data.Store.find() for

http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store


More specific way to add new element(s) in store at first place like...

Ext.data.Store.insert(0, [{id: 0, name: '(un-assigned)'}]);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜