Skip to content

yoldascevik/DevExtremeMongoDB

Repository files navigation

DevExtremeMongoDB

DxDatagrid MongoDB (MongoDriver) Support For .Net

Sample Using

[HttpGet]  
public ActionResult Movies(DataSourceLoadOptions loadOptions)  
{  
     var movieList = _movieCollection.Find(FilterDefinition<Movie>.Empty); // native mongodb query  
     var loadResult = MongoDataSourceLoader.Load(movieList, loadOptions); // apply grid options   
     var jsonResult = JsonConvert.SerializeObject(loadResult); // create json response  
  
     return Content(jsonResult, "application/json");  
}

This repository also contains a sample .NET 5 MVC Project. (mongodb required)

Install

You can include this library in your project with the Nuget package.

Add the nuget package to your project using Package Manager Console or Nuget Package Manager.

PM> Install-Package DxDataGrid.MongoDB

Or using .Net Cli

> dotnet add package DxDataGrid.MongoDB

✅ Supported Operations

  • Sorting
  • Row Filtering
  • All Filter Operations
    • Equals
    • Does not equals
    • Less than
    • Greater than
    • Less than or equal to
    • Greater than or equal to
    • Between
    • Contains
    • Does not contains
    • Starts with
    • Ends with
  • All Paging Operations
    • Skip
    • Take
    • Count

❎ Unsupported Operations (yet)

  • Header Filtering
  • Summary

Contributing

Please browse the CONTRIBUTING.md file to contribute.