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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Only one call to the action with filter set

Thread ID:





142235 Jan 23,2019 08:04 PM UTC Jan 28,2019 04:18 AM UTC ASP.NET Core 3
Tags: Grid
Corazon Cruz Sanchez
Asked On January 23, 2019 08:04 PM UTC

How can I make a single call to the GetBitacoras action with the filtering that I am
establishing from the databound, since with this code works as follows
makes a first call to the GetBitacoras action without the where, then makes a second
call to the GetBitacoras action with the where I set it in the databound.
What I would like is for a single call to be made to the GetBitacoras action with the where.
Stay tuned.

Attachment: Datamanager_7014d5c.zip

Vignesh Natarajan [Syncfusion]
Replied On January 24, 2019 07:25 AM UTC

Hi Corazon, 
Thanks for using Syncfusion products. 
Query: “What I would like is for a single call to be made to the GetBitacoras action with the where.” 
From your query, we understand that you need to perform filtering in the initial rendering itself. We suggest you to achieve your requirement by defining the filtered-columns in filterSettings API of ejGrid. 
Refer below code example for your reference 
    var ALFKI = "ALFKI"; 
    var ANTON = 5; 
<ej-grid id="FlatGrid" allow-paging="true" allow-filtering="true"> 
        <e-datamanager url="DataSource" adaptor="UrlAdaptor"></e-datamanager> 
        <e-filter-settings filter-type="Excel" max-filter-choices="50"> 
                <e-filtered-column field="CustomerID" operator="Contains" predicate="and" value="ALFKI" match-case="true"></e-filtered-column> 
                <e-filtered-column field="EmployeeID" operator="LessThanOrEqual" predicate="and" value="ANTON" match-case="true"></e-filtered-column> 
        .                     .                .                  .                 .  
Refer the below screenshot for the output 
For your convenience we have prepared a sample which can be downloaded from below link 
Refer our help documentation for your reference 
Please get back to us if you have further queries.  
Vignesh Natarajan 

Corazon Cruz Sanchez
Replied On January 25, 2019 11:31 PM UTC

Hi Vignesh Natarajan , 

It solved my problem,thank you very much


Vignesh Natarajan [Syncfusion]
Replied On January 28, 2019 04:18 AM UTC

Hi Corazon, 

Thanks for the update. 

We are glad to hear that your query has been resolved by our solution. 

Please get back to us if you need further assistance. 

Vignesh Natarajan 


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

Live Chat Icon For mobile
Live Chat Icon