You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetmvc/getting-started.md
+351Lines changed: 351 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1576,6 +1576,357 @@ Now build and run the application by pressing F5, you can see something similar
1576
1576
1577
1577
The DatePicker is rendered with its default appearance. You can then use its various properties to set its value and also make use of its available events to trigger when necessary.
1578
1578
1579
+
## MVC6 Application
1580
+
1581
+
This document briefly explains how to configure the ASP.NET MVC6 to your local machine.
1582
+
1583
+
### System Requirements:
1584
+
1585
+
1586
+
1587
+
To work with ASP.NET MVC 6, you need to make sure is whether you have installed the following software on your machine
1588
+
1589
+
1590
+
1591
+
* Download [Visual Studio 2015](https://www.microsoft.com/en-us/download/details.aspx?id=49989) Update 1.
1592
+
1593
+
* Download [Microsoft ASP.NET Web Tools 2015 (RC1)](https://www.microsoft.com/en-us/download/details.aspx?id=49959).
1594
+
1595
+
1596
+
1597
+
### Installation
1598
+
1599
+
1600
+
1601
+
Refer the following steps to configure ASP.NET MVC 6 on your system
1602
+
1603
+
1604
+
1605
+
* Open the [GitHub ASP.NET](https://github.com/aspnet/home) page that guides you to configure the ASP.NET MVC6.
1606
+
1607
+
* Copy the below mentioned command for Upgrading **DNVM** from that page.
* Open the command prompt with[Administrator mode](https://technet.microsoft.com/en-in/library/cc947813(v=ws.10).aspx) and run the above command,which will download the **DNVM (.NET Version Manager)**as mentioned in the below screenshotand place it in your user profile. The DNVM works manipulate from this installed path.
* Download the **DNX (.NET Execution Environment)** to your local machine with the help of already installed **DNVM** by executing the following command as given below.
* If the asterisk symbol is not marked to any specific installed DNX version, you need to update the default one to latest DNX version by execute the following command in prompt window.
* Execute the **dnvm list** command to identify the modified active DNX version.
1702
+
1703
+
{% highlight text %}
1704
+
1705
+
1706
+
**C:\Users> dnvm list**
1707
+
1708
+
1709
+
1710
+
{% endhighlight %}
1711
+
1712
+
* Please ensure whether the changes are got reflected in your local machine by checking the **default.txt** file which is available in the following location. This should contain the version same as the default active version that you have selected.
1713
+
1714
+
{% highlight text %}
1715
+
1716
+
1717
+
**C:\Users\{user name}\.dnx\alias**
1718
+
1719
+
1720
+
1721
+
{% endhighlight %}
1722
+
1723
+
1724
+
1725
+
1726
+
1727
+
### Deploying the ASP.NET MVC 6 Sample
1728
+
1729
+
The following steps helps to know how to run the ASP.NET MVC 6 sample.
1730
+
1731
+
* Open the **Visual Studio 2015**.
1732
+
1733
+
* Select **File - > New Project**.
1734
+
1735
+
* Choose **Templates -> Visual C# -> ASP.NET Web Application**.
1736
+
1737
+
* Specify the name and location for the project.
1738
+
1739
+
* Select the **Web Application** option from an **ASP.NET 5 Template**.
* Click OK to create the ASP.NET MVC 6 application.
1744
+
1745
+
* In Solution Explorer window, right click the project name and choose the "**Properties**" option.
1746
+
1747
+
* In that property window, open the application tab and choose the latest DNX version (list out the existing configured version) from the Solution SDK DNX Version combo box, then save the project.
* In this Package Sources window, you need to add the MVC 6 related online feed link and click OK button to complete the configuration. (This online feed will helps to download an unavailable packages in local machine that may be used in your application)
### Deploying Syncfusion components into ASP.NET MVC 6 Application
1768
+
1769
+
After successfully configured ASP.NET MVC 6 to your local machine, refer the below steps to deploy our Syncfusion components into ASP.NET MVC6Web applications.Before follow the below guidelines,please make sure that you have installed our latest [Essential Studio ASP.NET MVC](http://www.syncfusion.com/downloads/aspnetmvc) setup in your machine.
1770
+
1771
+
1772
+
1773
+
[Follow the steps which is mentioned in "**Deploying the ASP.NET MVC 6 Sample**" to create and configure the MVC 6 application]
1774
+
1775
+
* Open the **project.json** file from the solution explorer window and type our **Syncfusion NuGet** Packages as mentioned below,
* Now open **_viewImports.cshtml** file from the views folder and add the following namespace for components references and Tag Helper support.
1788
+
1789
+
1790
+
1791
+
{% highlight text %}
1792
+
1793
+
1794
+
@using Syncfusion.JavaScript
1795
+
1796
+
@addTagHelper "*, Syncfusion.EJ"
1797
+
1798
+
1799
+
1800
+
{% endhighlight %}
1801
+
1802
+
1803
+
1804
+
1805
+
* To render the Syncfusion MVC controls with its unique style and theme, it is necessary to refer the required CSS files into your application. You need to copy all the required CSS files into your application from the following location,
When you navigate to the above location, you can find the folder "**ejthemes**" shown in the below image, which you need to copy entirely and paste it into your root application.
Before pasting it into your application, you need to traversal within the **wwwroot\css** folder of your application and place all the copied files into it as shown below,
* Adding the required JavaScript files into your application plays an important role, without which the Syncfusion controls cannot be created. It requires the following mandatory common script files,
1842
+
1843
+
* jQuery-1.10.2.min.js
1844
+
1845
+
* jquery.easing.1.3.min.js
1846
+
1847
+
* jsrender.min.js
1848
+
1849
+
Apart from the above common scripts, it is also necessary to refer the **ej.web.all.min.js** file in your application, which contains all JavaScript components scripts in minified format.
1850
+
1851
+
You need to copy the above specified 4 external script files into your application from the following location,
Before pasting it into your application, now you need to traversal within the **wwwroot** folder and create a folder named "**scripts**" of your application and place all the copied files into it as shown below,
N> Also completely remove the already referred scripts and themes within the **environment** tag. The order of the reference to the script files made in the above section should be maintained in the same manner as mentioned above.
1889
+
1890
+
I> Since the **jquery-1.11.3.min.js** file is referred explicitly in the application, therefore make sure that your application doesn’t refer to any other jQuery versions multiple times, which will cause the script error. Make sure that the jQuery scripts are not again referred through bundles in **_Layout.cshtml** file.
1891
+
1892
+
* Add **ScriptManager** to the bottom of the **layout.cshtml** page. The ScriptManager used to place our control initialization script in the page.
1893
+
1894
+
1895
+
1896
+
{% highlight c# %}
1897
+
1898
+
1899
+
<**ej-script-manager**></**ej-script-manager**>
1900
+
1901
+
1902
+
1903
+
{% endhighlight %}
1904
+
1905
+
1906
+
1907
+
* Open your view page to render Syncfusion components with ASP.NET MVC 6 Tag Helper syntax.
## Integration of Syncfusion MVC components into an existing MVC Application using Project Conversion Wizard
1580
1931
1581
1932
In order to achieve the conversion of normal MVC application into Syncfusion MVC application, it is mandatory that you need to install the MVC extension in your machine as mentioned in the **Project****Template** topic. To add the Syncfusion MVC controls into an existing ASP.NET MVC application, refer the below steps,
0 commit comments