forked from syncfusion/ej2-aspnetcore-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config(EJ2-28895): Volume 2 released
- Loading branch information
Showing
488 changed files
with
52,736 additions
and
5,573 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace EJ2CoreSampleBrowser.Controllers | ||
{ | ||
public class AutoCompleteValue | ||
{ | ||
[Required(ErrorMessage = "Please enter a value")] | ||
public string val { get; set; } | ||
public string[] data { get; set; } | ||
} | ||
public partial class AutoCompleteController : Controller | ||
{ | ||
public string[] datasource = new string[] { "American Football", "Badminton", "Basketball", "Cricket", "Football", "Golf", "Hockey", "Rugby", "Snooker", "Tennis" }; | ||
public IActionResult AutoCompleteFor() | ||
{ | ||
AutoCompleteValue model = new AutoCompleteValue(); | ||
model.data = datasource; | ||
return View(model); | ||
} | ||
[HttpPost] | ||
public IActionResult AutoCompleteFor(AutoCompleteValue model) | ||
{ | ||
model.data = datasource; | ||
model.val = model.val; | ||
return View(model); | ||
} | ||
} | ||
} |
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,41 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
|
||
namespace EJ2CoreSampleBrowser.Controllers.Barcode | ||
{ | ||
public partial class BarcodeController : Controller | ||
{ | ||
public IActionResult Ean8() | ||
{ | ||
List<ExpandOptions> position = new List<ExpandOptions>(); | ||
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" }); | ||
position.Add(new ExpandOptions() { text = "Top", value = "top" }); | ||
|
||
ViewBag.position = position; | ||
ViewBag.expandValue = "Bottom"; | ||
List<alignment> align = new List<alignment>(); | ||
align.Add(new alignment() { text = "Left", value = "left" }); | ||
align.Add(new alignment() { text = "Right", value = "right" }); | ||
align.Add(new alignment() { text = "Center", value = "center" }); | ||
|
||
ViewBag.align = align; | ||
ViewBag.alignmentValue = "Center"; | ||
return View(); | ||
} | ||
|
||
} | ||
public class ExpandOptions | ||
{ | ||
public string text; | ||
public string value; | ||
} | ||
public class alignment | ||
{ | ||
public string text; | ||
public string value; | ||
} | ||
} |
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,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
|
||
namespace EJ2CoreSampleBrowser.Controllers.Barcode | ||
{ | ||
public partial class BarcodeController : Controller | ||
{ | ||
public IActionResult codabar() | ||
{ | ||
List<ExpandOptions> position = new List<ExpandOptions>(); | ||
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" }); | ||
position.Add(new ExpandOptions() { text = "Top", value = "top" }); | ||
|
||
ViewBag.position = position; | ||
ViewBag.expandValue = "Bottom"; | ||
List<alignment> align = new List<alignment>(); | ||
align.Add(new alignment() { text = "Left", value = "left" }); | ||
align.Add(new alignment() { text = "Right", value = "right" }); | ||
align.Add(new alignment() { text = "Center", value = "center" }); | ||
|
||
ViewBag.align = align; | ||
ViewBag.alignmentValue = "Center"; | ||
return View(); | ||
} | ||
|
||
} | ||
} |
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,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
|
||
namespace EJ2CoreSampleBrowser.Controllers.Barcode | ||
{ | ||
public partial class BarcodeController : Controller | ||
{ | ||
public IActionResult code128A() | ||
{ | ||
List<ExpandOptions> position = new List<ExpandOptions>(); | ||
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" }); | ||
position.Add(new ExpandOptions() { text = "Top", value = "top" }); | ||
|
||
ViewBag.position = position; | ||
ViewBag.expandValue = "Bottom"; | ||
List<alignment> align = new List<alignment>(); | ||
align.Add(new alignment() { text = "Left", value = "left" }); | ||
align.Add(new alignment() { text = "Right", value = "right" }); | ||
align.Add(new alignment() { text = "Center", value = "center" }); | ||
|
||
ViewBag.align = align; | ||
ViewBag.alignmentValue = "Center"; | ||
return View(); | ||
} | ||
|
||
} | ||
} |
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,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
|
||
namespace EJ2CoreSampleBrowser.Controllers.Barcode | ||
{ | ||
public partial class BarcodeController : Controller | ||
{ | ||
public IActionResult code128B() | ||
{ | ||
List<ExpandOptions> position = new List<ExpandOptions>(); | ||
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" }); | ||
position.Add(new ExpandOptions() { text = "Top", value = "top" }); | ||
|
||
ViewBag.position = position; | ||
ViewBag.expandValue = "Bottom"; | ||
List<alignment> align = new List<alignment>(); | ||
align.Add(new alignment() { text = "Left", value = "left" }); | ||
align.Add(new alignment() { text = "Right", value = "right" }); | ||
align.Add(new alignment() { text = "Center", value = "center" }); | ||
|
||
ViewBag.align = align; | ||
ViewBag.alignmentValue = "Center"; | ||
return View(); | ||
} | ||
|
||
} | ||
} |
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,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
|
||
namespace EJ2CoreSampleBrowser.Controllers.Barcode | ||
{ | ||
public partial class BarcodeController : Controller | ||
{ | ||
public IActionResult code128C() | ||
{ | ||
List<ExpandOptions> position = new List<ExpandOptions>(); | ||
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" }); | ||
position.Add(new ExpandOptions() { text = "Top", value = "top" }); | ||
|
||
ViewBag.position = position; | ||
ViewBag.expandValue = "Bottom"; | ||
List<alignment> align = new List<alignment>(); | ||
align.Add(new alignment() { text = "Left", value = "left" }); | ||
align.Add(new alignment() { text = "Right", value = "right" }); | ||
align.Add(new alignment() { text = "Center", value = "center" }); | ||
|
||
ViewBag.align = align; | ||
ViewBag.alignmentValue = "Center"; | ||
return View(); | ||
} | ||
|
||
} | ||
} |
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,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
|
||
namespace EJ2CoreSampleBrowser.Controllers.Barcode | ||
{ | ||
public partial class BarcodeController : Controller | ||
{ | ||
public IActionResult code128() | ||
{ | ||
List<ExpandOptions> position = new List<ExpandOptions>(); | ||
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" }); | ||
position.Add(new ExpandOptions() { text = "Top", value = "top" }); | ||
|
||
ViewBag.position = position; | ||
ViewBag.expandValue = "Bottom"; | ||
List<alignment> align = new List<alignment>(); | ||
align.Add(new alignment() { text = "Left", value = "left" }); | ||
align.Add(new alignment() { text = "Right", value = "right" }); | ||
align.Add(new alignment() { text = "Center", value = "center" }); | ||
|
||
ViewBag.align = align; | ||
ViewBag.alignmentValue = "Center"; | ||
return View(); | ||
} | ||
|
||
} | ||
|
||
} |
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,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
|
||
namespace EJ2CoreSampleBrowser.Controllers.Barcode | ||
{ | ||
public partial class BarcodeController : Controller | ||
{ | ||
public IActionResult code32() | ||
{ | ||
List<ExpandOptions> position = new List<ExpandOptions>(); | ||
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" }); | ||
position.Add(new ExpandOptions() { text = "Top", value = "top" }); | ||
|
||
ViewBag.position = position; | ||
ViewBag.expandValue = "Bottom"; | ||
List<alignment> align = new List<alignment>(); | ||
align.Add(new alignment() { text = "Left", value = "left" }); | ||
align.Add(new alignment() { text = "Right", value = "right" }); | ||
align.Add(new alignment() { text = "Center", value = "center" }); | ||
|
||
ViewBag.align = align; | ||
ViewBag.alignmentValue = "Center"; | ||
return View(); | ||
} | ||
|
||
} | ||
} |
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,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
|
||
namespace EJ2CoreSampleBrowser.Controllers.Barcode | ||
{ | ||
public partial class BarcodeController : Controller | ||
{ | ||
public IActionResult code39() | ||
{ | ||
List<ExpandOptions> position = new List<ExpandOptions>(); | ||
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" }); | ||
position.Add(new ExpandOptions() { text = "Top", value = "top" }); | ||
|
||
ViewBag.position = position; | ||
ViewBag.expandValue = "Bottom"; | ||
List<alignment> align = new List<alignment>(); | ||
align.Add(new alignment() { text = "Left", value = "left" }); | ||
align.Add(new alignment() { text = "Right", value = "right" }); | ||
align.Add(new alignment() { text = "Center", value = "center" }); | ||
|
||
ViewBag.align = align; | ||
ViewBag.alignmentValue = "Center"; | ||
return View(); | ||
} | ||
|
||
} | ||
} |
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,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
|
||
namespace EJ2CoreSampleBrowser.Controllers.Barcode | ||
{ | ||
public partial class BarcodeController : Controller | ||
{ | ||
public IActionResult code39Extd() | ||
{ | ||
List<ExpandOptions> position = new List<ExpandOptions>(); | ||
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" }); | ||
position.Add(new ExpandOptions() { text = "Top", value = "top" }); | ||
|
||
ViewBag.position = position; | ||
ViewBag.expandValue = "Bottom"; | ||
List<alignment> align = new List<alignment>(); | ||
align.Add(new alignment() { text = "Left", value = "left" }); | ||
align.Add(new alignment() { text = "Right", value = "right" }); | ||
align.Add(new alignment() { text = "Center", value = "center" }); | ||
|
||
ViewBag.align = align; | ||
ViewBag.alignmentValue = "Center"; | ||
return View(); | ||
} | ||
|
||
} | ||
} |
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,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
|
||
namespace EJ2CoreSampleBrowser.Controllers.Barcode | ||
{ | ||
public partial class BarcodeController : Controller | ||
{ | ||
public IActionResult code93() | ||
{ | ||
List<ExpandOptions> position = new List<ExpandOptions>(); | ||
position.Add(new ExpandOptions() { text = "Bottom", value = "bottom" }); | ||
position.Add(new ExpandOptions() { text = "Top", value = "top" }); | ||
|
||
ViewBag.position = position; | ||
ViewBag.expandValue = "Bottom"; | ||
List<alignment> align = new List<alignment>(); | ||
align.Add(new alignment() { text = "Left", value = "left" }); | ||
align.Add(new alignment() { text = "Right", value = "right" }); | ||
align.Add(new alignment() { text = "Center", value = "center" }); | ||
|
||
ViewBag.align = align; | ||
ViewBag.alignmentValue = "Center"; | ||
return View(); | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.