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

kendogrid.datasource is undefined in Js file

1 Answer 339 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 05 Jun 2014, 07:43 AM
I am not able to use kendo.data.datasource and also not kendogrid.datasource

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 06 Jun 2014, 12:25 PM
Hi Jan,

In order to declare new dataSource you will need to use the following statement:

var dataSource = new kendo.data.DataSource();

As for the grid dataSource:

$('#gridId').data('kendoGrid').dataSource

Regards,
Kiril Nikolov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Jan
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or