• What is KendoReact
  • Getting Started
  • Unstyled Mode
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chart Wizardnew
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Toolsupdated
    • Date Inputs
    • Date Math
    • Dialogsupdated
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBoxupdated
    • ListView
    • Map
    • Notification
    • OrgChart
    • PDF Processing
    • PDF Viewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Schedulerupdated
    • ScrollView
    • Sortable
    • Spreadsheet
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

Getting Started with the Kendo UI Data Query

This guide provides the information you need to start using the Kendo UI Data Query—it includes instructions about the installation approach, how to import the required methods, and links to additional resources.


Installing the Package

To add the Kendo UI Data Query package, run the following command:

npm install --save @progress/kendo-data-query

Using the Package

  1. After successfully installing the Data Query, import the required individual functions from the package:

    import { process, orderBy, filterBy } from '@progress/kendo-data-query';
  2. Then you can perform the desired in-memory data operations. The following code snippet demonstrates how an array objects could be filtered using filterBy method:

    import { filterBy } from '@progress/kendo-data-query';
    
    const data = [
        { name: "Pork", category: "Food", subcategory: "Meat" },
        { name: "Pepper", category: "Food", subcategory: "Vegetables" },
        { name: "Beef", category: "Food", subcategory: "Meat" }
    ];
    
    const result = filterBy(data, {
        logic: 'and',
        filters: [
            { field: "name", operator: "startswith", value: "P" },
            { field: "subcategory", operator: "eq", value: "Meat" },
        ]
    });
    
    console.log(JSON.stringify(result, null, 2));
    /* output
    [
        { "name": "Pork", "category": "Food", "subcategory": "Meat" }
    ]
    */

Dependencies

The Kendo UI Data Query package has no external dependencies.

Next Steps