This is a migrated thread and some comments may be shown as answers.

datasource data comes with options.data.

0 Answers 115 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Tirumalesh
Top achievements
Rank 1
Tirumalesh asked on 26 Mar 2012, 03:25 PM
when i create
var mainmenuds =[{ }];

 var dSource= kendo.data.DataSource.create({
                    schema: { model: { id: "group_uid"} },
                    data: mainmenuds
                });

result is: [options:[data:[{ }]]]. if i want to assign it to a list i'm doing like:

 $("#mainmenuList").kendoMobileListView({
                template: $("#MymenuTemplate").text(),
                click: addToCartFromList,
                dataSource: dSource.options.data,
                group: "group_name"
            });
And also i unable to get data by "group_uid", like dSource.get(id), it returns undefined.

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
Tirumalesh
Top achievements
Rank 1
Share this question
or