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

Shared datasource but difference groupings

2 Answers 115 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Chuck
Top achievements
Rank 1
Chuck asked on 06 Mar 2012, 12:24 PM
Is there a way to have a shared datasource, but then define the grouping when the datasource is being used?  For example I have the following datasource that is shared by two different pages

var vendorAlphaDS = kendo.data.DataSource.create({
                                     transport: {
read: {
url: "http://localhost/~termleech/conference/vendors/all",
dataType: "json"
}
     }
});

I have this used by two different pages, but each page is grouped differently.  So rather than have two difference datasources each with the different grouping, I was wondering if I could just add the grouping to the datasource dynamically.

2 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 09 Mar 2012, 12:20 PM
Hello,

I am not sure if I understand your question correctly - basically it is not possible to share the DataSource between different pages. You could bind multiple UI widgets to the same DataSource and the grouping of the data will affect all of them.

If I missed something, please provide more specified information about your scenario.


Greetings,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Engifaar
Top achievements
Rank 1
answered on 02 Jun 2012, 08:51 AM
Hello Nikolova, I have single kendoGrid where i have assign remote datasource.It is working fine. Now i want to change that datasource on every onkeydown event of textbox... But the problem is.. when i assign different datasource to same kendoGrid.. it show me old datasource data with new one..... 

Thank You in advance... please help me out

Tags
Data Source
Asked by
Chuck
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Engifaar
Top achievements
Rank 1
Share this question
or