We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Searching with Entity Framework

Thread ID:





124380 Jun 6,2016 10:04 AM UTC Jun 7,2016 11:45 AM UTC ASP.NET MVC 2
Tags: Grid
Asked On June 6, 2016 10:04 AM UTC


Iam using Grid with CRUDURL and loading Data with DataManager.
How to realize a dynamic search over all Columns?


Replied On June 6, 2016 10:20 AM UTC

If I use this as Datasource, searching is working:

But I also want to Edit the Grid, so i changed it to:

Now i can not really search, because i have to pass dynamicly the search Columns to Entity Framework, what is not working.

Can I combine the Datasource Expression??? Like this:


Jayaprakash Kamaraj [Syncfusion]
Replied On June 7, 2016 11:45 AM UTC

Hi Arthur, 

Thank you for contacting Syncfusion support. 

While using UrlAdaptor, we need to handle grid operation(filtering/searching/sorting) in server side. Please refer to the below knowledgebase document, help document, code example and sample. 

            .Datasource(ds => ds.URL("/Grid/DataSource").CrudURL("/Grid/CrudUpdate").Adaptor(AdaptorType.UrlAdaptor)) 
public ActionResult DataSource(DataManager dm) 
           if (dm.Search != null && dm.Search.Count > 0) //searching 
                result.result = operation.PerformSearching(DataSource, dm.Search); 
           return Json(result, JsonRequestBehavior.AllowGet); 


Jayaprakash K. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon