Pass filters, sort to Rest Api

1 Answer 86 Views
DataFilter DataPager DataServiceDataSource GridView
Patryk
Top achievements
Rank 1
Patryk asked on 15 May 2023, 01:35 PM

Hello,

 

Here is my situation:

1. I have got client app in WPF ( Cant create here any db context etc )

2. I have got Rest Api where is DbContext (EntityFramework)

3. I have got RadGrid and RadPager

 

I want to pass QueryableCollectionView or QueryableEntityCollectionView or something else? to this rest api, processing data, use filters, pagination and sorters from radgrid. Then in returns i want to receive collection of Products, Employees or something

 

Is any body do something like this? I know that in Blazor UI there is DataSourceRequest etc and it works fine, but i did not find alternative in WPF

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 18 May 2023, 08:40 AM

Hello Patryk,

You can take a look at the EntityFrameworkCoreDataSource (for the new .NET versions) and EntityFrameworkDataSource (for .NET Framework).

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Adiel
Top achievements
Rank 1
commented on 28 Sep 2023, 10:15 AM

Hi, 

But those data sources are working only with a direct connection to the Database.

I think that he's (and I) looking for an efficient way to pass the grid filter/sort/page/group into a web API endpoint.

Patryk, Am I right? 

Martin Ivanov
Telerik team
commented on 02 Oct 2023, 08:33 AM

In that case, you will need to do that manually. Basically, you can use the RadGridView events. You can find some information on that topic in the Managing Data section of the help documentation of RadGridView.
Tags
DataFilter DataPager DataServiceDataSource GridView
Asked by
Patryk
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or