开发者

add Items to Sencha Nested List

开发者 https://www.devze.com 2023-01-05 01:31 出处:网络
Hi i got a Problem with adding new Items to a Sencha Nested List Component. currently my code looks like this:

Hi i got a Problem with adding new Items to a Sencha Nested List Component.

currently my code looks like this:

var newItem = nestedList.add({text:rowData.name});
nestedList.开发者_如何转开发doLayout();

The Problem is the Items just wont show up no matter how often on on what i do call doLayout. When in debug the nestedList Object, the items are correctly placed in the items array.

Greetings Nexum


try calling nestedlist.update() thats what i call before dolayout on normal lists


nestedList.down("list").add({});
nestedList.down("list").refresh();
0

精彩评论

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