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

Configure RadGrid data source in code behine

2 Answers 8 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Perry
Top achievements
Rank 1
Perry asked on 30 Oct 2015, 07:49 PM
With an ASP.net Gridview I set the select method in the C# code behind page, and use an IQueryable to access the data entity data to populate the Grid.  Is it possible to do this with the RadGridview or do I have to make that connection with the ASP code?  If so can someone provide instructions on how to do that or an example?

2 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 03 Nov 2015, 07:05 AM
Hello Perry,

Yes, the RadGrid provides NeedDataSource event handler for this purpose:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-binding/understanding-data-binding/server-side-binding/advanced-data-binding-%28using-needdatasource-event%29

You can also check the following live sample:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/programmatic-hierarchy/defaultcs.aspx

Hope this helps.

Regards,
Eyup
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
0
Perry
Top achievements
Rank 1
answered on 03 Nov 2015, 07:56 PM
Thanks that was just what I was looking for.
Tags
Grid
Asked by
Perry
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Perry
Top achievements
Rank 1
Share this question
or