Skip to content

Commit

Permalink
ContextMenu / Scrolling: appy .NET demo
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkithelegendarypokemonster committed Apr 29, 2024
1 parent 33881ef commit bcc1f3b
Show file tree
Hide file tree
Showing 5 changed files with 1,296 additions and 3 deletions.
17 changes: 14 additions & 3 deletions NetCoreDemos/Controllers/ContextMenuController.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using DevExtreme.AspNet.Data;
using DevExtreme.AspNet.Mvc;
using DevExtreme.NETCore.Demos.Models.SampleData;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;

namespace DevExtreme.NETCore.Demos.Controllers {
public class ContextMenuController : Controller {
public ActionResult Basics() {
return View();
}

public ActionResult Scrolling() {
return View();
}

public ActionResult Templates() {
return View();
}

[HttpGet]

public ActionResult GetScrollingProducts(DataSourceLoadOptions loadOptions) {
return Json(DataSourceLoader.Load(ContextMenuData.Products, loadOptions));
}
}
}
10 changes: 10 additions & 0 deletions NetCoreDemos/Models/ContextMenuScrollingItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;

namespace DevExtreme.NETCore.Demos.Models {
public class ContextMenuScrollingItem {
public string text { get; set; }
public IEnumerable<ContextMenuScrollingItem> items { get; set; }
}
}
Loading

0 comments on commit bcc1f3b

Please sign in to comment.