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

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The ASP.NET MVC Query Builder is a rich and responsive UI for filtering large amounts of data by creating or editing conditions that can be combined with data visualization controls like DataGrid and Charts to view the filtered data. It outputs structured JSON filters that can be easily parsed to create SQL queries. It allows you to create conditions and group them using AND/OR logic.


Why choose Syncfusion ASP.NET MVC Query Builder?

ASP.NET MVC Query Builder data binding

Seamless data binding

Bind data seamlessly with various local and remote data sources such as JSON, OData, WCF, and RESTful web services with the help of a data manager.

ASP.NET MVC Query Builder exporting

Importing and exporting

You can import or export filter from or to the Query Builder in structured formats like JSON and SQL.

ASP.NET MVC Query Builder responsiveness

Adapts to any resolution

Query Builder has a highly responsive layout and an optimized design for desktops, touchscreens, and smart phones. It works well on all mobile phones that use iOS, Android, or Windows OS.

ASP.NET MVC Query Builder template designs

Create your own template designs

You can add checkboxes, sliders, and dropdown lists to the Query Builder using three different templates options.

ASP.NET MVC Query Builder themes

Attractive, customizable themes

Cutting-edge design with several built-in themes, such as Fluent, Tailwind CSS, Bootstrap, Material, and Fabric. Utilize the online Theme Studio tool to customize themes easily.

ASP.NET MVC Query globalization

Globalization and localization

Enables users from different locales to use the component by formatting strings to suit preferences.


ASP.NET MVC Query Builder Code Example

Easily get started with ASP.NET MVC Query Builder using a few simple lines of C# code, as demonstrated below. Also explore our ASP.NET MVC Query Builder Example that shows you how to render and configure the ASP.NET MVC Query Builder Component.

@section ControlsSection{
    <div class=" control-section">
        @Html.EJS().QueryBuilder("querybuilder").Width("70%").Columns(col =>
   {
       col.Field("EmployeeID").Label("Employee ID").Type("number").Add();
       col.Field("FirstName").Label("First Name").Type("string").Add();
       col.Field("TitleOfCourtesy").Label("Title Of Courtesy").Type("boolean").Values(new List<string> { "Mr.", "Mrs." }).Add();
       col.Field("Title").Label("Title").Type("string").Add();
       col.Field("HireDate").Label("Hire Date").Type("date").Format("dd/MM/yyyy").Add();
       col.Field("Country").Label("Country").Type("string").Add();
       col.Field("City").Label("City").Type("string").Add();
   }).Rule(ViewBag.rule).DataSource(ViewBag.dataSource).Render()
    </div>
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EJ2MVCSampleBrowser.Models;
using Syncfusion.EJ2.QueryBuilder;

namespace EJ2MVCSampleBrowser.Controllers.QueryBuilder
{
    public partial class QueryBuilderController : Controller
    {
        public ActionResult DefaultFunctionalities()
        {
            QueryBuilderRule rule = new QueryBuilderRule()
            {
                Condition = "and",
                Rules = new List<QueryBuilderRule>()
                {
                    new QueryBuilderRule { Label="Employee ID", Field="EmployeeID", Type="number", Operator="equal", Value = 1 },
                    new QueryBuilderRule { Label="Title", Field="Title", Type="string", Operator="equal", Value = "Sales Manager" }
                }
            };

            ViewBag.rule = rule;
            ViewBag.dataSource = EmployeeView.GetAllRecords();
            return View();
        }
    }
}

Data Manager Integration in ASP.NET MVC Query Builder

Integration with Data Manager

Integrating the Data Manager control with the Query Builder simplifies communication with a data source and returns the desired result based on the provided filters.


UI customization with templates

Add controls like Checkbox, Slider, and Dropdown List to to customize the ASP.NET MVC Query Builder using templates.

Querybuilder with Header template.

Header template

Users can define their own widgets to customize the elements such as and/or/not connectors and add rules/groups buttons using header template.

Querybuilder with column template.

Rule template

Users can define their own widgets to customize the entire column elements such as fields, operators, and values using rule template.

Querybuilder with Value template.

Value template

Users can define their own widgets to customize the elements for values using values template.


Model binding

Model binding binds properties for the components used in field, operator, and value columns. To implement model binding, assign fieldModel, operatorModel, and valueModel properties in the QueryBuilder.

Querybuilder model binding.


ASP.NET MVC Query Builder Summary View

Summary View

The ASP.NET MVC Query Builder supports a summary view that outputs the filter query in SQL format.


Import and export

Supports importing and exporting Query Builder filter to and from structured JSON and SQL formats.

ASP.NET MVC Query Builder Import and Export


ASP.NET MVC Querybuilder complex data binding

Complex data binding

Complex data binding allows users to create subfields within the main fields. This can be useful for representing hierarchical or multilevel data in a more organized and structured way. To create subfields, users can either specify the complex data in nested columns or specify a complex data source and separator.


Column binding

The column definitions are used as the data source schema in the Query Builder UI. This plays a vital role in rendering column values. The query builder operations, such as create or delete conditions and create or delete groups, are based on column definitions.

Column binding in ASP.NET MVC Query Builder


Filtering in ASP.NET MVC Query Builder

Filtering

Users can create a filter by adding or deleting conditions or groups. Users can get a created filter as SQL query, JSON, and data manager predicates.


Appearance customization

Change the look and feel of the ASP.NET MVC Query Builder UI by customizing its default appearance and style using HTML or CSS.

ASP.NET MVC Query Builder Appearance customization


Web accessibility

  • Fully supports WAI-ARIA accessibility to work with screen readers and assistive devices.
  • Follows WAI-ARIA best practices for implementing keyboard interaction.
  • Follows WCAG 2.0 standards in design of the UI element visuals such as foreground color, background color, line spacing, text, and images.
  • Supports right-to-left (RTL) text direction for users working in right-to-left languages like Hebrew, Arabic, or Persian.

Other supported frameworks

The Query Builder component is also available in Blazor, Angular, React, Vue, and JavaScript frameworks. Check out the different Query Builder platforms from the links below,

Supported browsers

The ASP.NET MVC Query Builder works well with all modern web browsers such as Chrome, Firefox, Edge, Safari, and IE11. It supports IE11 with the help of polyfills.




80+ ASP.NET MVC UI CONTROLS

Frequently Asked Questions

  • Easy to integrate with data visualization components like Grid, Charts, and more.
  • Best UI experience to create filters in the form of JSON and SQL query.
  • Supports a summary view that outputs the filter query in SQL format.
  • Supports importing and exporting Query Builder data to and from structured JSON and SQL formats.
  • Fully customizable to include other components like Checkbox, Slider, and Dropdown List using templates.
  • One of the best ASP.NET MVC Query Builder in the market that offers feature-rich UI to interact with the software.
  • Simple configuration and API.
  • Supports all modern browsers.
  • Mobile-touch friendly and responsive.
  • Expansive learning resources such as demos and documentation to learn quickly and get started with ASP.NET MVC Query Builder.

We do not sell the ASP.NET MVC Query Builder separately. It is only available for purchase as part of the Syncfusion ASP.NET MVC suite, which contains over 80 ASP.NET MVC components, including the Query Builder UI. A single developer license for the Syncfusion Essential Studio for ASP.NET MVC suite costs $995.00 USD, including one year of support and updates. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team today to see if you qualify for any additional discounts.

You can find our ASP.NET MVC Query Builder demo, which demonstrates how to render and configure the Query Builder.

No, our 80+ ASP.NET MVC components, including Query Builder UI, are not sold individually, only as a single package. However, we have competitively priced the product so it only costs a little bit more than what some other vendors charge for their Query Builder UI alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 80+ ASP.NET MVC components for a flat fee of $995/developer. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team today to see if you qualify for any additional discounts.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version Download Free Trial

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon

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