Created
September 21, 2016 05:03
-
-
Save goofmint/50b908a0a8ec843e4d70d4aa79ad2f09 to your computer and use it in GitHub Desktop.
5.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dataSource = datagrid.createDataSource({ | |
idProperty: 'id', | |
type: 'ajax', | |
param: { | |
ajax: dumyAjax, | |
search: { | |
request: function(param) { | |
return { | |
type: 'search', | |
param: param | |
}; | |
}, | |
response: function(result) { | |
return result; | |
} | |
}, | |
fetch: { | |
request: function(param, range) { | |
return { | |
type: 'fetch', | |
param: param, | |
range: range | |
}; | |
}, | |
response: function(result) { | |
return result; | |
} | |
}, | |
find: { | |
request: $.noop, | |
response: $.noop | |
}, | |
commit: { | |
request: function(edit) { | |
return { | |
type: 'commit', | |
edit: edit.getReplacedDataSet() | |
}; | |
}, | |
response: $.noop | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment