or
var myDataSource = new kendo.data.DataSource({ pageSize: 10, serverPaging: true, transport: { read: { url: 'http://mydataurl/', headers: { 'X-Requested-With': 'XMLHttpRequest' } }, parameterMap: function (data, type) { // Code for parameterMap. } }, schema: { data: 'Data', total: 'Total' }, });function manuallyUpdateDataSource(dataSourceObjects) { myDataSource.data(dataSourceObjects); myDataSource.query({ pageSize: 10, page: 3 }); // setting to page 3 just for testing.}<!DOCTYPE html><html><head> <title></title> <link href="styles/kendo.common.min.css" rel="stylesheet" /> <link href="styles/kendo.default.min.css" rel="stylesheet" /> <link href="styles/layout.css" rel="stylesheet" /> <script src="js/jquery.min.js"></script> <script src="js/kendo.all.min.js"></script></head><body><div id="secHeader1"> header 1 <div style="width: 120px; float:right;"> <ul id="menu"> <li> Products <ul> <li>Furniture</li> <li>Decor</li> <li>Storage</li> <li>Lights</li> </ul> </li> </ul> <script> $(document).ready(function() { $("#menu").kendoMenu(); }); </script> </div></div><div id="secHeader2"> header 2</div><div id="secContent"> content body</div><div id="secFooter"> footer</div></body></html>* {margin:0; padding:0;} html, body, form {margin:0; padding:0; height: 100%; color:#ffffff;}html>body>form {position:absolute; width:100%;}#secHeader1 {position:absolute; overflow:hidden; width:100%; height:75px;left:0; top:0px; background-color:#8a0000;}#secHeader2 {position:absolute; overflow:hidden; width:100%; height:75px; left:0; top:75px; background-color:#666666;}#secContent {position:absolute; overflow:hidden; width:100%; left:0; top:150px; bottom:31px; background-color:#0c0c0c;}#secFooter {position:absolute; overflow:hidden; width:100%; height:30px; left:0; bottom:0; background-color:#606060; border-top:1px solid #a0a0a0;}<a id="btb1" data-role="button" style="background-color: green; width:90%;" data-click="action" data-name="Stuff & Stuff" data-id="1" data-unit="Unit" data-unitid="1" class="km-button"> <span class="km-text">DONT CLICK ME</span></a><table id="jobs"
data-role="grid"
data-bind="source: jobsList, events: { change: gridChange, cancel: gridCancel, remove: gridRemove, save: gridSave}"
data-columns="[{ field: 'Id', width: 50, title: 'Id', filterable: true}, { field: 'Name', width: 80, title: 'Name', filterable: true}, { field: 'Description', width: 150, title: 'Description', filterable: true},{ command: ['edit','destroy'], title: '' }]"
data-toolbar="[{ name: 'create', text: 'Add new job'}]"
data-pageable="true"
data-editable="{mode: 'inline', confirmation: 'Are you sure you want to delete this job? It will not be recoverable'}"
data-sortable="true"
data-column-menu="false"
data-resizable="true"
data-selectable="true"
data-filterable="{ extra: false, operators: { string: { startswith: 'Starts with', eq: 'same as', neq: 'different' }, number: {eq: '==', neq: '!=' , gt: '>', lt: '<'}}}"
>
</table>
gridChange: function (eventArgs) {
//do something
},
gridRemove: function(eventArgs) {
//do something
},
gridCancel: function(eventArgs) {
//do something
},
gridSave: function(eventArgs) {
//do something
}