Getting Started with Kendo UI

首先來個Kendo UI的網址http://docs.kendoui.com/
雖然正式版剛釋出,但網路上能找的資源差不多都在這了

Kendo UI Complete for ASP.NET MVC(以下簡稱Kendo UI)使用方式和Telerik Extensions for ASP.NET MVC(以下簡稱Telerik)一樣,可下載壓縮檔自行解壓取用檔案,也可使用安裝檔直接將檔案裝在特定路徑。
這邊以安裝檔的方式快速截圖,並說明使用方式如下:




安裝完畢請瀏覽至C:\Program Files (x86)\Telerik\Kendo UI for ASP.NET MVC Q2 2012
  • 將js資料夾所有檔案複製到MVC專案的Scripts
  • 將styles資料夾所有檔案複製到MVC專案的Content
  • 加入Binary參考,路徑為wrappers\aspnetmvc\Binaries\Mvc3\Kendo.Mvc.dll
  • 在主版頁面加入下列資訊<link rel="stylesheet" href="@Url.Content("~/Content/kendo.common.min.css")">
    <link rel="stylesheet" href="@Url.Content("~/Content/kendo.default.min.css")">
    <script src="@Url.Content("~/Scripts/kendo.web.min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo.aspnetmvc.min.js")"></script>
  • web.config與Views\web.config皆加上namespace<add namespace="Kendo.Mvc.UI" />

Done!

Kendo UI誕生

Telerik前陣子放出消息,表示支援Telerik Extensions for ASP.NET MVC只到明年(2013 Q3),
而最大更新差不多就停留在目前的2012 Q2,之後版本多是修正bug和提升performance

取而代之的是這套Kendo UI Complete for ASP.NET MVC,今年7月已推出正式版,
簡單來說就是Kendo UI=CSS 3 + Html 5 + Javascript,以現階段版本還比不上Telerik的完善,開發文件也不盡完全,還不用急著升級
但未來若要朝MVC 4升級,可能要考慮轉用這套(Telerik Extensions for ASP.NET MVC只支援到MVC 3),另外Kendo對REST也提供比較好的支援,以微軟將推出的.Net Framework 4.5來看也是有此趨勢。

其他參考資訊
官方對一些疑慮的釐清
從Telerik升級到Kendo
Kendo UI Complete for ASP.NET MVC