I have an existing datasource as following ,
I want to create other datasource from this data source. I tried
it is throwing exception then I tried
It is throwing exception in all case. My req is to create a filtered datasource from existing datasource .
Thanks
Dhananjay Kumar
var
data;
data =
new
kendo.data.DataSource(
{
type:
"odata"
,
pageSize: 5,
endlessScroll:
true
,
scrollTreshold: 30,
transport:{
read: {
dataType:
"jsonp"
,
data: {
Accept:
"application/json"
}
}
}
});
I want to create other datasource from this data source. I tried
var
data1 =
new
kendo.data.DataSource({
transport: {
read: data.data()
}
});
data1.read();
it is throwing exception then I tried
var
data1 =
new
kendo.data.DataSource({ read: data.data()});
data1.read();
It is throwing exception in all case. My req is to create a filtered datasource from existing datasource .
Thanks
Dhananjay Kumar