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

Remote binding with ServerGrouping example

2 Answers 281 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 15 Sep 2014, 07:24 PM
Hello. 
Does anyone know of a good example of  remote binding with ServerGrouping? 

I'm trying to figure out with kind of response Kendo UI is expecting from server for grouping to work? I have to talk to a custom Rails backend that has standard AND custom CRUD actions and resturns JSON.

If Telerik could provide a server grouping version of this example - it would be terrific!!  http://demos.telerik.com/kendo-ui/grid/remote-data-binding

I tried to explore several Telerik's data sources/ backend but none of them seem to support server grouping.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 17 Sep 2014, 03:14 PM
Hi Nick,

Basically you should set the dataSource "schema.groups" option (function | string) to point to the field from the server response in which the groups are contained. Currently we have no such example which we can provide, other than the attached one which uses MVC as backend. The project requires VisualStudio 2012, however you can directly go and open the following file (with your favorite text editor) which contains the example grid dataSource configuration:
  • \%ProjectFolder%\Views\Home\Index.cshtml

Also you can check the example response from the server for the above dataSource configuration:

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Nick
Top achievements
Rank 1
answered on 26 Sep 2014, 02:26 PM
Thank you!

As a side note - just a thought. It would be great if you could pass it on to whoever is in charge of Marketing / Business Direction .

I would suggest telerik takes a look at ruby market, and how to make kendo more rails / sinatra friendly i.e. gem is outdated, there are almost no rails / kendo examples as well. In the Rails / Ruby world the current trend is to build SPA using some kind of Javascript framework with a Rails / Sinatra or Grape backend service that generates XML or JSON. The current frameworks on the market (both commercial and open source) are all about providing the wiring (Angular, Ember, Knockout, etc), but very few provide a good set of tools (widgets ) like Kendo (the only other two jquery based I know are Wijmo and w2ui ). Rails world is overwhelmingly jQuery world, and most people I know who are not familiar with .NET,  are not even aware of Kendo. 
Tags
Grid
Asked by
Nick
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Nick
Top achievements
Rank 1
Share this question
or