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

Datasource Single item override DataSource.GET(id)

1 Answer 371 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
florim
Top achievements
Rank 1
florim asked on 02 Aug 2013, 11:36 PM
I have DataSource like this:

var contactDataSource = new kendo.data.DataSource({
        transport: {
            tbl: azureService.client.getTable('CRContact'),
            read: function (options) {
                this.tbl.read({ SearchString: options.data.filter.filters[0].value}).done( 
                    function (d) {
                        options.success(d);
                    }, function (err) {
                        options.error(err);
                    });
            }
serverFiltering :true,
        schema: {
            model:
            {
                id: "id",
            }
        }
I need so when i use datasource.get(4) to call this example
this.tbl.lookup(idThatISendAsParameter).done(function (result) {
 
}, function (err) {
 
})
how can i override the get function.


Sorry for my bad English.





1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 06 Aug 2013, 03:28 PM
Hello Florim,

I am afraid you cannot override the default behavior of the get dataSource function.

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
florim
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or