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

Grid + Odata... Help!

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DusterMynes
Top achievements
Rank 1
DusterMynes asked on 06 Dec 2015, 10:14 PM

I've look through all the available examples for the integration of odata in grid and none was helpful, maybe what I want is not available with radgrid for asp.net.

What I want : A simple server side datasource binding to a odata source like if I was binding to a entity collection.

 

I want the most simple example to demonstrate  that its simple to group, sort and filter an odata feed through a telerik grid. My feed is a odata v3. I do not want client-side binding because it tends to be complexe scripting option.

I want something like that :

var grid = new radgrid();

grid.datasource = new IDatasource("http://someithing/odata") // theres any Odatadatasource implementing IDatasource?

grid.autogeratecollumns = true

grid.enablegrouping = true

grid.enablesorting = true

grid.enablefiltering = true

 

Thanks for any help!

 

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 09 Dec 2015, 01:13 PM
Hi,

The requirement that you have could not be achieved with server-side binding, unless you retrieve the data manually and pass it to the RadGrid control as a DataTable, object collection, etc.

As for a simple example for enabling all of the requested functionality with OData service, this could be achieved through the RadClientDataSource control. In the following online demo you can see such implementation in action:
Hope this helps.


Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
DusterMynes
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or