I'm trying to use a custom transport. Using a grid, the transport methods are getting called. However, when I use DataSource.add(), the transport create method is not getting called. Is this a limitation? JSBin here: http://jsbin.com/xixamugasunu. Thanks.
3 Answers, 1 is accepted
answered on 18 Aug 2014, 11:57 AM
The create method will be called when the sync() of the dataSource is called. Please check the following example and let me know if it helps:
Thanks. I added sync() to my code but it still didn't work. I took a look at your example which does work and made the datasource standalone (mydatasource). I then referenced the datasource directly (instead of var dataSource = $('#grid').getKendoGrid().dataSource). That broke it. The data is being added but the create function is not being called.
Updated jsBin here http://jsbin.com/buqekefufemi/1/edit.
Is there something else missing on my code? Or is the custom transport limited to the datagrid?