Load data in datatable from script

Hi, everybody

I’m new user of Webix, and my english is basic… thanks in advance…

I use widget DataTable, according to documentation, here: http://docs.webix.com/desktop__plain_dynamic_loading.html

If my script return data json like:

{
    "data":[ 
        {"id":1,"package":"acx100-source"},
        {"id":1,"package":"acx200-source"}
    ],
    "pos":0,
    "total_count":999
}

data not show in table, but if only return data, like:

"data" : [ 
    {"id":1,"package":"acx100-source"},
    {"id":1,"package":"acx200-source"}
]

Table show data correctly…

Why?, what am I doing wrong?

Best regards

first script is not wrong http://webix.com/snippet/37892024 check your code once again (row id must not be repeated, but it is not the matter)

first script is copy from this documentation: http://docs.webix.com/desktop__plain_dynamic_loading.html

the data is return from my server in format JSON according to documentation…

Thanks

There’s a typo in our docs, sorry.