DxDatagrid MongoDB (MongoDriver) Support For .Net
[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)
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
- 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
- Header Filtering
- Summary
Please browse the CONTRIBUTING.md file to contribute.