Login Register

problem of add new item to datastore but not display it

Hi, all

the problem is a little bit strange. I have a datastore, and it will be display as tree.

for example:

{
identifier : "id",
label : "title",
items : [
{
title:"group A",
id:"a",
type : "show",
children:[
{
id : "aa",
type : "show",
title:"group AA"
}
},
{
title:"info A",
id:"info_a",
type : "hidden"
}
]
}
So first I can display the datastore as a tree and only display the items with type "show", then I add a new item programmatically

this.store.newItem(
{
title:"info AA",
id:"info_aa",
type : "hidden",
}
);
It should add this item to datastore as a top level item, right? and I didn't change anything else, but how this item be displayed on the tree?