Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified App_Data/Data/DocIO/DoctoPDF.docx
Binary file not shown.
Binary file added App_Data/XlsIO/CallCenterTemplate.xlsx
Binary file not shown.
Binary file modified App_Data/XlsIO/ExcelTopdf.xlsx
Binary file not shown.
Binary file modified App_Data/XlsIO/ExcelTopdfwithChart.xlsx
Binary file not shown.
Binary file added Content/images/dropdown-tree/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Content/images/dropdown-tree/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Content/images/dropdown-tree/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Content/images/dropdown-tree/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Content/images/dropdown-tree/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Content/images/dropdown-tree/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Content/images/dropdown-tree/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Content/images/dropdown-tree/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Content/images/dropdown-tree/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Content/images/dropdown-tree/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Content/images/dropdown-tree/file_icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,783 changes: 2,471 additions & 1,312 deletions Content/styles/bootstrap-dark.css

Large diffs are not rendered by default.

3,781 changes: 2,470 additions & 1,311 deletions Content/styles/bootstrap.css

Large diffs are not rendered by default.

3,881 changes: 2,543 additions & 1,338 deletions Content/styles/bootstrap4.css

Large diffs are not rendered by default.

3,768 changes: 2,463 additions & 1,305 deletions Content/styles/fabric-dark.css

Large diffs are not rendered by default.

3,770 changes: 2,466 additions & 1,304 deletions Content/styles/fabric.css

Large diffs are not rendered by default.

3,775 changes: 2,471 additions & 1,304 deletions Content/styles/highcontrast.css

Large diffs are not rendered by default.

4,041 changes: 2,712 additions & 1,329 deletions Content/styles/material-dark.css

Large diffs are not rendered by default.

4,437 changes: 3,112 additions & 1,325 deletions Content/styles/material.css

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions Controllers/Chart/StackedStepAreaController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Syncfusion.EJ2.Charts;

namespace EJ2MVCSampleBrowser.Controllers.Chart
{
public partial class ChartController : Controller
{
// GET: StepArea
public ActionResult StackedStepArea()
{
List<StackedStepAreaChartData> chartData = new List<StackedStepAreaChartData>
{
new StackedStepAreaChartData { xValue = 2000, yValue = 416, yValue1 = 180 },
new StackedStepAreaChartData { xValue = 2001, yValue = 490, yValue1 = 240 },
new StackedStepAreaChartData { xValue = 2002, yValue = 470, yValue1 = 370 },
new StackedStepAreaChartData { xValue = 2003, yValue = 500, yValue1 = 200 },
new StackedStepAreaChartData { xValue = 2004, yValue = 449, yValue1 = 229 },
new StackedStepAreaChartData { xValue = 2005, yValue = 470, yValue1 = 210 },
new StackedStepAreaChartData { xValue = 2006, yValue = 437, yValue1 = 337 },
new StackedStepAreaChartData { xValue = 2007, yValue = 458, yValue1 = 258 },
new StackedStepAreaChartData { xValue = 2008, yValue = 500, yValue1 = 300 },
new StackedStepAreaChartData { xValue = 2009, yValue = 473, yValue1 = 173 },
new StackedStepAreaChartData { xValue = 2010, yValue = 520, yValue1 = 220 },
new StackedStepAreaChartData { xValue = 2011, yValue = 509, yValue1 = 309 },
};
ViewBag.dataSource = chartData;
return View();
}
public class StackedStepAreaChartData
{
public double xValue;
public double yValue;
public double yValue1;
}
}
}
16 changes: 8 additions & 8 deletions Controllers/Diagram/SwimlaneController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public ActionResult Swimlane()
ViewBag.getNodeDefaults = "getNodeDefaults";
ViewBag.getConnectorDefaults = "getConnectorDefaults";
List<DiagramPort> ports = new List<DiagramPort>();
ports.Add(new DiagramPort() { Id = "Port1", Offset = new DiagramPoint() { X = 0, Y = 0.5 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port2", Offset = new DiagramPoint() { X = 0.5, Y = 0 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port3", Offset = new DiagramPoint() { X = 1, Y = 0.5 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port4", Offset = new DiagramPoint() { X = 0.5, Y = 1 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port1", Offset = new DiagramPoint() { X = 0, Y = 0.5 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Default | PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port2", Offset = new DiagramPoint() { X = 0.5, Y = 0 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Default | PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port3", Offset = new DiagramPoint() { X = 1, Y = 0.5 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Default | PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port4", Offset = new DiagramPoint() { X = 0.5, Y = 1 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Default | PortConstraints.Draw });


List<DiagramNode> SymbolPaletee = new List<DiagramNode>();
Expand Down Expand Up @@ -203,10 +203,10 @@ public ActionResult Swimlane()
public void GenerateDiagramNodes(List<DiagramNode> Nodes)
{
List<DiagramPort> ports = new List<DiagramPort>();
ports.Add(new DiagramPort() { Id = "Port1", Offset = new DiagramPoint() { X = 0, Y = 0.5 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port2", Offset = new DiagramPoint() { X = 0.5, Y = 0 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port3", Offset = new DiagramPoint() { X = 1, Y = 0.5 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port4", Offset = new DiagramPoint() { X = 0.5, Y = 1 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port1", Offset = new DiagramPoint() { X = 0, Y = 0.5 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Default | PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port2", Offset = new DiagramPoint() { X = 0.5, Y = 0 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Default | PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port3", Offset = new DiagramPoint() { X = 1, Y = 0.5 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Default | PortConstraints.Draw });
ports.Add(new DiagramPort() { Id = "Port4", Offset = new DiagramPoint() { X = 0.5, Y = 1 }, Visibility = PortVisibility.Connect | PortVisibility.Hover, Constraints = PortConstraints.Default | PortConstraints.Draw });


//Add lanes children
Expand Down
4 changes: 2 additions & 2 deletions Controllers/DocIO/BookmarkNavigationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ public ActionResult BookmarkNavigation(string Group1,string Button)
bk = new BookmarksNavigator(nwdInformation);
bk.MoveToBookmark("SuppliersTable");
//Sets the column index where the bookmark starts within the table
// bk.CurrentBookmark.FirstColumn = 1;
bk.CurrentBookmark.FirstColumn = 1;
//Sets the column index where the bookmark ends within the table
//bk.CurrentBookmark.LastColumn = 5;
bk.CurrentBookmark.LastColumn = 5;
//// Get the content of suppliers table bookmark.
bodyPart = bk.GetBookmarkContent();
// Creating a bookmark navigator. Which help us to navigate through the
Expand Down
7 changes: 4 additions & 3 deletions Controllers/DocIO/RTFToDocController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,23 @@ public ActionResult RTFToDoc(string Group1, HttpPostedFileBase file)
if (extension == ".rtf")
{
WordDocument document = new WordDocument(file.InputStream, FormatType.Rtf);
string outputFileName = Path.GetFileNameWithoutExtension(file.FileName);

#region Document save option
//Save as .doc format
if (Group1 == "WordDoc")
{
return document.ExportAsActionResult("Sample.doc", FormatType.Doc, HttpContext.ApplicationInstance.Response, HttpContentDisposition.Attachment);
return document.ExportAsActionResult(outputFileName + ".doc", FormatType.Doc, HttpContext.ApplicationInstance.Response, HttpContentDisposition.Attachment);
}
//Save as .docx format
else if (Group1 == "WordDocx")
{
return document.ExportAsActionResult("Sample.docx", FormatType.Docx, HttpContext.ApplicationInstance.Response, HttpContentDisposition.Attachment);
return document.ExportAsActionResult(outputFileName + ".docx", FormatType.Docx, HttpContext.ApplicationInstance.Response, HttpContentDisposition.Attachment);
}
// Save as WordML(.xml) format
else if (Group1 == "WordML")
{
return document.ExportAsActionResult("Sample.xml", FormatType.WordML, HttpContext.ApplicationInstance.Response, HttpContentDisposition.Attachment);
return document.ExportAsActionResult(outputFileName + ".xml", FormatType.WordML, HttpContext.ApplicationInstance.Response, HttpContentDisposition.Attachment);
}
#endregion Document save option
}
Expand Down
97 changes: 97 additions & 0 deletions Controllers/DocumentEditor/MailMergeController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EJ2MVCSampleBrowser.Controllers.DocumentEditor
{
public partial class DocumentEditorController : Controller
{
public ActionResult MailMerge()
{
this.DocumentEditorViewResultHelper();
List<object> listdata = new List<object>();
listdata.Add(new
{
text = "ProductName",
id = "_productname",
Category = "Drag or click the field to insert.",
htmlAttributes = new { draggable = true }
});
listdata.Add(new
{
text = "ShipName",
id = "_shipname",
Category = "Drag or click the field to insert.",
htmlAttributes = new { draggable = true }
});
listdata.Add(new
{
text = "CustomerID",
id = "_customerid",
Category = "Drag or click the field to insert.",
htmlAttributes = new { draggable = true }
});
listdata.Add(new
{
text = "Quantity",
id = "_quantity",
Category = "Drag or click the field to insert.",
htmlAttributes = new { draggable = true }
});
listdata.Add(new
{
text = "UnitPrice",
id = "_unitprice",
Category = "Drag or click the field to insert.",
htmlAttributes = new { draggable = true }
});
listdata.Add(new
{
text = "Discount",
id = "_discount",
Category = "Drag or click the field to insert.",
htmlAttributes = new { draggable = true }
});
listdata.Add(new
{
text = "ShipAddress",
id = "_shipaddress",
Category = "Drag or click the field to insert.",
htmlAttributes = new { draggable = true }
});
listdata.Add(new
{
text = "ShipCity",
id = "_shipcity",
Category = "Drag or click the field to insert.",
htmlAttributes = new { draggable = true }
});
listdata.Add(new
{
text = "ShipCountry",
id = "_shipcountry",
Category = "Drag or click the field to insert.",
htmlAttributes = new { draggable = true }
});
listdata.Add(new
{
text = "OrderId",
id = "_orderid",
Category = "Drag or click the field to insert.",
htmlAttributes = new { draggable = true }
});
listdata.Add(new
{
text = "OrderDate",
id = "_orderdate",
Category = "Drag or click the field to insert.",
htmlAttributes = new { draggable = true }
});
ViewBag.dataSource = listdata;
return View();
}

}
}
23 changes: 23 additions & 0 deletions Controllers/DropDownTree/CheckboxController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.Web.Mvc;
using EJ2MVCSampleBrowser.Models;
using Syncfusion.EJ2.DropDowns;

namespace EJ2MVCSampleBrowser.Controllers.DropDownTree
{
public partial class DropDownTreeController : Controller
{
DropDownTreeFields checkboxFields = new DropDownTreeFields();
public ActionResult Checkbox()
{
DropDownTreeCheckbox dropdDownTreeData = new DropDownTreeCheckbox();
checkboxFields.DataSource = dropdDownTreeData.Checkbox();
checkboxFields.Value = "id";
checkboxFields.Text = "name";
checkboxFields.Expanded = "expanded";
checkboxFields.HasChildren = "hasChild";
checkboxFields.ParentValue = "pid";
ViewBag.checkboxfields = checkboxFields;
return View();
}
}
}
23 changes: 23 additions & 0 deletions Controllers/DropDownTree/FilteringController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.Web.Mvc;
using EJ2MVCSampleBrowser.Models;
using Syncfusion.EJ2.DropDowns;

namespace EJ2MVCSampleBrowser.Controllers.DropDownTree
{
public partial class DropDownTreeController : Controller
{
DropDownTreeFields filteringData = new DropDownTreeFields();
public ActionResult Filtering()
{
DropDownTreeFiltering dropdownTreeFiltering = new DropDownTreeFiltering();
filteringData.DataSource = dropdownTreeFiltering.Filtering();
filteringData.Value = "id";
filteringData.Text = "name";
filteringData.Expanded = "expanded";
filteringData.HasChildren = "hasChild";
filteringData.ParentValue = "pid";
ViewBag.filteringdata = filteringData;
return View();
}
}
}
24 changes: 24 additions & 0 deletions Controllers/DropDownTree/IconsAndImagesController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System.Web.Mvc;
using EJ2MVCSampleBrowser.Models;
using Syncfusion.EJ2.DropDowns;

namespace EJ2MVCSampleBrowser.Controllers.DropDownTree
{
public partial class DropDownTreeController : Controller
{
DropDownTreeFields iconsFields = new DropDownTreeFields();
public ActionResult IconsAndImages()
{
DropDownTreeIcons dropdownTreeIconsAndImages = new DropDownTreeIcons();
iconsFields.DataSource = dropdownTreeIconsAndImages.getIconsData();
iconsFields.Value = "nodeId";
iconsFields.Text = "nodeText";
iconsFields.IconCss = "icon";
iconsFields.ImageUrl = "image";
iconsFields.Expanded = "expanded";
iconsFields.Child = "child";
ViewBag.iconsFields = iconsFields;
return View();
}
}
}
23 changes: 23 additions & 0 deletions Controllers/DropDownTree/MultipleSelectionController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.Web.Mvc;
using EJ2MVCSampleBrowser.Models;
using Syncfusion.EJ2.DropDowns;

namespace EJ2MVCSampleBrowser.Controllers.DropDownTree
{
public partial class DropDownTreeController : Controller
{
DropDownTreeFields selectionData = new DropDownTreeFields();
public ActionResult MultipleSelection()
{
DropDownTreeMultiSelection dropdownTreeMultiSelection = new DropDownTreeMultiSelection();
selectionData.DataSource = dropdownTreeMultiSelection.MultipleSelection();
selectionData.Value = "id";
selectionData.Text = "name";
selectionData.Expanded = "expanded";
selectionData.HasChildren = "hasChild";
selectionData.ParentValue = "pid";
ViewBag.selectionData = selectionData;
return View();
}
}
}
23 changes: 23 additions & 0 deletions Controllers/DropDownTree/TemplateController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.Web.Mvc;
using EJ2MVCSampleBrowser.Models;
using Syncfusion.EJ2.DropDowns;

namespace EJ2MVCSampleBrowser.Controllers.DropDownTree
{
public partial class DropDownTreeController : Controller
{
DropDownTreeFields templateData = new DropDownTreeFields();
public ActionResult Template()
{
DropDownTreeTemplate dropdownTreeTemplate = new DropDownTreeTemplate();
templateData.DataSource = dropdownTreeTemplate.Template();
templateData.Value = "id";
templateData.Text = "name";
templateData.Expanded = "expanded";
templateData.HasChildren = "hasChild";
templateData.ParentValue = "pid";
ViewBag.templateData = templateData;
return View();
}
}
}
Loading