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

how to use Kendo UI Grid with Ruby On Rails

6 Answers 510 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Joel asked on 21 Dec 2011, 04:42 AM
Hello Guys,

Please help me on how to bind the data from Ruby on Rails  using the grid.

Appreciate any help.


Thank you.


wawhe

6 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 21 Dec 2011, 07:41 AM
Hi Joel,

Can you please let us know what exactly you have tried and what were the problems with it? It would also help if you provide a working sample from your project with your implementation so far. 

Regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Joel
Top achievements
Rank 1
answered on 21 Dec 2011, 08:03 AM
Hi Petyo,

I want to use the grid in my rail project.  I don't know where to start on how to bind my data in a grid.  The document says it can not bind to a server side so how can i bind it from sqlite3 to json?  I tried to use the grid using the table structure but the pagination is not working.  My simple question is  how to use the grid in ruby on rails? how to bind the existing my existing model to the grid?


Thanks!

Best Regard,

Joel
0
Petyo
Telerik team
answered on 21 Dec 2011, 08:11 AM
Hi Joel,

Please review this example - Binding to remote data. The DataSource supports variety of formats, including JSON, which you can easily render from the server. 

Best wishes,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Joel
Top achievements
Rank 1
answered on 21 Dec 2011, 08:24 AM
Is there other way I can bind sqlite directly to the grid?  And does it mean we have to convert our data to JSON so that we can bind in the grid? 

Thanks.
0
Petyo
Telerik team
answered on 26 Dec 2011, 07:58 AM
Hello Joel,

The Grid widget (in fact, all Kendo widgets) is client-side only. Direct binding to a database server is not supported.

Rails has an excellent support for rendering ActiveRecord model instances in JSON format, which can be consumed by the DataSource component.  

Kind regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Leonardo
Top achievements
Rank 1
answered on 26 Dec 2011, 06:17 PM
Please visit kendo videos, there are an example of Grid with RoR...
Tags
Grid
Asked by
Joel
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Joel
Top achievements
Rank 1
Leonardo
Top achievements
Rank 1
Share this question
or