Iphone 将项目添加到Sencha嵌套列表
嗨,我在向Sencha嵌套列表组件添加新项时遇到问题 当前我的代码如下所示:Iphone 将项目添加到Sencha嵌套列表,iphone,list,ipad,nested,extjs,Iphone,List,Ipad,Nested,Extjs,嗨,我在向Sencha嵌套列表组件添加新项时遇到问题 当前我的代码如下所示: var newItem = nestedList.add({text:rowData.name}); nestedList.doLayout(); 问题是,无论在我称之为doLayout的网站上出现多少次,这些物品都不会出现。 在调试nestedList对象时,项目将正确放置在项目数组中 问候Nexum尝试调用nestedlist.update() 这就是我在正常列表上显示之前调用的方法尝试调用nestedlist.
var newItem = nestedList.add({text:rowData.name});
nestedList.doLayout();
问题是,无论在我称之为doLayout的网站上出现多少次,这些物品都不会出现。
在调试nestedList对象时,项目将正确放置在项目数组中
问候Nexum尝试调用nestedlist.update()
这就是我在正常列表上显示之前调用的方法尝试调用nestedlist.update()
nestedList.down("list").add({});
nestedList.down("list").refresh();
这就是我在正常名单上公布之前所说的
nestedList.down("list").add({});
nestedList.down("list").refresh();