-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ContextMenu / Scrolling: appy .NET demo
- Loading branch information
1 parent
33881ef
commit bcc1f3b
Showing
5 changed files
with
1,296 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
Oops, something went wrong.