Visual Studio 2010 で Kendo UI をセットアップするにはどうすればよいですか?
2 に答える
Kendo UI および ASP.NET WebFormsのようなこのサンプル アプリケーションを確認してください: タスク マネージャーの構築。これを使用して作業を開始する手順は次のとおりです。
- In Visual Studio, create a new ASP.NET Web application.
- Download Kendo UI.
- From the Kendo UI download, I copied the following files into the TaskManager/Scripts folder:
1.js/jquery.min.is
2.js/keno.all.min.js
- In the TaskManager application I created a new folder called "kendo" in the /Content folder.
- From the Kendo UI download, copy the following files / folders into the /Content:
1.styles/kendo.common.min.css
2.styles/kendo.silver.min.css
3.styles/Silver (folder)
これらを head セクションに含めます。
<head>
<title></title>
<link href="Content/kendo/kendo.common.min.css" rel="Stylesheet" type="text/css" />
<link href="Content/kendo/kendo.silver.min.css" rel="Stylesheet" type="text/css" />
<link href="Content/Site.css" rel="Stylesheet" type="text/css" />
<script src="Scripts/jquery.min.js" type="text/javascript"></script>
<script src="Scripts/kendo.all.min.js" type="text/javascript"></script>
<script src="Scripts/json.extensions.js" type="text/javascript"></script>
</head>
Kendoのサンプルと使用法については、Codeplex - Kendo UI ASP.NET サンプル アプリケーションを参照してください。
シンプル 必要なものはこれだけ
セットアップを開始するには、新しい ASP.Net 空の Web アプリケーションを作成します。
注: 好きな Web ベースのプロジェクト テンプレートを実際に使用できます。このウォークスルーでは、何もないところから始めることを選択しました。:)
プロジェクトが読み込まれたら、NuGet パッケージ マネージャー コンソールを起動します。
ここに : NuGet NuGet は Visual Studio の拡張機能で、サードパーティのライブラリとツールを Visual Studio に簡単にインストールおよび更新できます (J クエリや Kendoui ファイルなど)。
次のコマンドを使用して、JQuery をプロジェクトに追加します。
インストール パッケージ jQuery
次のコマンドを使用して KendoUI をプロジェクトに追加します。
インストールパッケージ KendoUIWeb
これら両方の NuGet コマンドを実行すると、ソリューション エクスプローラーは次のようになります。
出典:調べてみてください