{"id":175457,"date":"2013-04-04T16:19:04","date_gmt":"2013-04-04T12:19:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=175457"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=175457","title":{"rendered":"<span class=\"post_title\">\u0410\u0434\u043c\u0438\u043d\u043a\u0430 \u0437\u0430 10 \u043c\u0438\u043d\u0443\u0442<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" align=\"left\" src=\"http:\/\/habrastorage.org\/storage2\/bc8\/d3e\/99b\/bc8d3e99b6f1d4afbe79e0568bbf180e.png\"\/>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u043e\u0435 \u0425\u0430\u0431\u0440\u0430\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e!<\/p>\n<p>  \u042f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043e\u0432. \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0433\u043e\u0442\u043e\u0432\u044b\u0435 CMS, \u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043a\u0438\u0440\u043f\u0438\u0447\u0438\u043a\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0438 \u0430\u0434\u043c\u0438\u043d\u0441\u043a\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u044b \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0443, \u043d\u043e \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c. \u0418 \u0435\u0441\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u044d\u0442\u043e \u043f\u043e\u043b \u0431\u0435\u0434\u044b, \u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0435\u0449\u0451 \u0438 \u0432\u0435\u0440\u0441\u0442\u0430\u0442\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<p>  \u0414\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"http:\/\/twitter.github.com\/bootstrap\/\">Twitter Bootstrap<\/a>, \u043d\u043e \u043e\u043d \u043d\u0435 \u043c\u043e\u0433 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u044c \u0432\u0441\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0438. \u041f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0432\u0435\u0440\u0441\u0442\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0438 \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b. \u041d\u043e \u0432\u043e\u0442 \u043e\u0434\u043d\u0430\u0436\u0434\u044b, \u044f \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0441\u044f \u0441 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c UI-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c <a href=\"http:\/\/www.kendoui.com\/\">KendoUI<\/a> \u043e\u0442 <a href=\"http:\/\/www.telerik.com\/\">Telerik<\/a>. \u0427\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c. <\/p>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u041e \u0441\u0430\u043c\u043e\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 \u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b\u0430\u0441\u044c <a href=\"http:\/\/habrahabr.ru\/post\/133648\/\">\u0441\u0442\u0430\u0442\u044c\u044f<\/a> \u043d\u0430 \u0425\u0430\u0431\u0440\u0435. \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 Web-\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432 <a href=\"http:\/\/www.kendoui.com\/web.aspx\">KendoUI Web<\/a>. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441 \u0435\u0451 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443 \u0441 <a href=\"http:\/\/demos.kendoui.com\/web\/overview\/index.html\">\u0434\u0435\u043c\u043e<\/a>. \u0414\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0445\u0435\u043b\u043f\u0435\u0440\u044b \u0434\u043b\u044f ASP.NET, JSP \u0438\u043b\u0438 PHP, \u0442\u0430\u043a \u0438 javascript-\u0432\u0438\u0434\u0436\u0435\u0442\u044b. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 GPL v3 License, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0438\u043c\u0435\u043d\u043d\u043e \u0438\u0445. \u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0442\u043e\u0442 \u0438\u043b\u0438 \u0438\u043d\u043e\u0439 \u043f\u0430\u043a\u0435\u0442 \u043c\u043e\u0436\u043d\u043e <a href=\"http:\/\/www.kendoui.com\/download.aspx\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e ASP.NET MVC 4 \u0441 \u043f\u0430\u043a\u0435\u0442\u043e\u043c Microsoft ASP.NET Web API OData 4.0.0, \u0443\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b <b>PM&gt; Install-Package Microsoft.AspNet.WebApi.OData<\/b><\/p>\n<p>  \u0414\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 Article, \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u043c\u0443 \u0442\u0440\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430  <\/p>\n<pre><code>    public class Article \t{ \t\tpublic int ID { get; set; } \t\tpublic string Title { get; set; } \t\tpublic bool Hidden { get; set; } \t} <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c ApiController \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0412 \u0441\u0432\u043e\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Entity Framework, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0440\u0430\u0437\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e Scaffolding options<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e98\/93c\/980\/e9893c9809ad57561e8acf8a045a49e3.png\"\/><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u044f \u0438\u0437\u043c\u0435\u043d\u044f\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 GetArticles, \u0442\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0438\u0436\u0435. \u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 ODataResult. \u0410 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 ODataQueryOptions, \u044d\u0442\u043e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u0412 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e \u0438 \u043e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043d\u0435\u0439. \u0410 \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043a \u043d\u0435\u0439 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a \u043d\u0435\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u043e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e, \u043e\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u043f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u0438.<\/p>\n<pre><code>    public class ArticlesController : ApiController     {         private Storage db = new Storage();          \/\/ GET api\/Articles \t\tpublic ODataResult&lt;Article&gt; GetArticles(ODataQueryOptions options) \t\t{ \t\t\tvar items = db.Articles; \t\t\tvar count = items.Count();             var res = (IEnumerable&lt;Article&gt;)options.ApplyTo(items);  \t\t\treturn new ODataResult&lt;Article&gt;(res, null, count); \t\t}          \/\/ GET api\/Articles\/5         public Article GetArticle(int id)         {             Article article = db.Articles.Find(id);             if (article == null)             {                 throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound));             }              return article;         }          \/\/ PUT api\/Articles\/5         public HttpResponseMessage PutArticle(int id, Article article)         {             if (ModelState.IsValid && id == article.ID)             {                 db.Entry(article).State = EntityState.Modified;                  try                 {                     db.SaveChanges();                 }                 catch (DbUpdateConcurrencyException)                 {                     return Request.CreateResponse(HttpStatusCode.NotFound);                 }                  return Request.CreateResponse(HttpStatusCode.OK);             }             else             {                 return Request.CreateResponse(HttpStatusCode.BadRequest);             }         }          \/\/ POST api\/Articles         public HttpResponseMessage PostArticle(Article article)         {             if (ModelState.IsValid)             {                 db.Articles.Add(article);                 db.SaveChanges();                  HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, article);                 response.Headers.Location = new Uri(Url.Link(&quot;DefaultApi&quot;, new { id = article.ID }));                 return response;             }             else             {                 return Request.CreateResponse(HttpStatusCode.BadRequest);             }         }          \/\/ DELETE api\/Articles\/5         public HttpResponseMessage DeleteArticle(int id)         {             Article article = db.Articles.Find(id);             if (article == null)             {                 return Request.CreateResponse(HttpStatusCode.NotFound);             }              db.Articles.Remove(article);              try             {                 db.SaveChanges();             }             catch (DbUpdateConcurrencyException)             {                 return Request.CreateResponse(HttpStatusCode.NotFound);             }              return Request.CreateResponse(HttpStatusCode.OK, article);         }     } <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435. \u0421\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c KendoUI \u0438 JQuery \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.  <\/p>\n<pre><code class=\"html\">    &lt;link href=&quot;~\/Content\/kendo\/kendo.common.min.css&quot; rel=&quot;stylesheet&quot; \/&gt; \t&lt;link href=&quot;~\/Content\/kendo\/kendo.default.min.css&quot; rel=&quot;stylesheet&quot; \/&gt; \t&lt;script src=&quot;\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.8.0\/jquery.min.js&quot;&gt;&lt;\/script&gt; \t&lt;script src=&quot;~\/Scripts\/kendo\/kendo.web.min.js&quot;&gt;&lt;\/script&gt; <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0432\u0438\u0434\u0436\u0435\u0442. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"http:\/\/docs.kendoui.com\/api\/web\/grid\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<pre><code class=\"html\">&lt;div id=&quot;grid&quot;&gt;&lt;\/div&gt; \t&lt;script&gt; \t\t$(document).ready(function () { \t\t\t$(&quot;#grid&quot;).kendoGrid({ \t\t\t\tdataSource: { \t\t\t\t\tpageSize: 3, \t\t\t\t\tserverSorting: true, \t\t\t\t\tserverFiltering: true, \t\t\t\t\tserverPaging: true, \t\t\t\t\ttype: 'odata', \t\t\t\t\ttransport: { \t\t\t\t\t\tread: { \t\t\t\t\t\t\turl: &quot;\/api\/articles&quot;, \t\t\t\t\t\t\tdataType: &quot;json&quot;, \t\t\t\t\t\t\ttype: &quot;GET&quot; \t\t\t\t\t\t}, \t\t\t\t\t\tcreate: { \t\t\t\t\t\t\turl: &quot;\/api\/articles&quot;, \t\t\t\t\t\t\tdataType: &quot;json&quot;, \t\t\t\t\t\t\ttype: &quot;POST&quot; \t\t\t\t\t\t}, \t\t\t\t\t\tupdate: { \t\t\t\t\t\t\turl: function (article) { \t\t\t\t\t\t\t\treturn &quot;\/api\/articles\/&quot; + article.ID \t\t\t\t\t\t\t}, \t\t\t\t\t\t\tdataType: &quot;json&quot;, \t\t\t\t\t\t\ttype: &quot;PUT&quot; \t\t\t\t\t\t}, \t\t\t\t\t\tdestroy: { \t\t\t\t\t\t\turl: function (article) { \t\t\t\t\t\t\t\treturn &quot;\/api\/articles\/&quot; + article.ID \t\t\t\t\t\t\t}, \t\t\t\t\t\t\tdataType: &quot;json&quot;, \t\t\t\t\t\t\ttype: &quot;DELETE&quot; \t\t\t\t\t\t} \t\t\t\t\t}, \t\t\t\t\tschema: { \t\t\t\t\t\tdata: function (data) { \t\t\t\t\t\t\treturn data.Items; \t\t\t\t\t\t}, \t\t\t\t\t\ttotal: function (data) { \t\t\t\t\t\t\treturn data.Count; \t\t\t\t\t\t}, \t\t\t\t\t\tmodel: { \t\t\t\t\t\t\tid: &quot;ID&quot;, \t\t\t\t\t\t\tfields: { \t\t\t\t\t\t\t\tID: { editable: false }, \t\t\t\t\t\t\t\tTitle: { type: &quot;string&quot;, editable: true, nullable: false, validation: { required: true } }, \t\t\t\t\t\t\t\tHidden: { type: &quot;boolean&quot;, editable: true } \t\t\t\t\t\t\t} \t\t\t\t\t\t} \t\t\t\t\t} \t\t\t\t}, \t\t\t\theight: 250, \t\t\t\tfilterable: true, \t\t\t\tsortable: true, \t\t\t\tpageable: true, \t\t\t\ttoolbar: [&quot;create&quot;], \t\t\t\teditable: &quot;popup&quot;, \t\t\t\tcolumns: [ \t\t\t\t\t{ field: &quot;ID&quot;, filterable: false, width: 50 }, \t\t\t\t\t{ field: &quot;Title&quot;, title: &quot;\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435&quot;, width: 300 }, \t\t\t\t\t{ field: &quot;Hidden&quot;, title: &quot;\u0421\u043a\u0440\u044b\u0442&quot;, width: 100 }, \t\t\t\t\t{ command: [&quot;edit&quot;, &quot;destroy&quot;], title: &quot;&nbsp;&quot;, width: &quot;210px&quot; } \t\t\t\t] \t\t\t}); \t\t}); \t&lt;\/script&gt; <\/code><\/pre>\n<p>  \u0413\u043e\u0442\u043e\u0432\u043e! \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c. \u041c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c \u0437\u0430 10 \u043c\u0438\u043d\u0443\u0442 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u0438, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438. \u0423\u0434\u043e\u0431\u043d\u044b\u0439 \u0438 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439. \u0421\u043f\u0430\u0441\u0438\u0431\u043e KendoUI \u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0443 OData, \u0430 \u0412\u0430\u043c \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/e61\/c94\/c59\/e61c94c5999f2c8aa0ddf086d75a8c92.png\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/2a4\/7cf\/8b7\/2a47cf8b78e591c6d7524d5ed9a74707.png\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/004\/32c\/86b\/00432c86b14584da308aef3eb29a97b9.png\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/2fc\/cd3\/fe2\/2fccd3fe2973f32461df0575e43a75dc.png\"\/><\/p>\n<p>  \u0420.S. \u041a\u0441\u0442\u0430\u0442\u0438 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 <b>js\/cultures<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 \u0441 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c.<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/175457\/\"> http:\/\/habrahabr.ru\/post\/175457\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" align=\"left\" src=\"http:\/\/habrastorage.org\/storage2\/bc8\/d3e\/99b\/bc8d3e99b6f1d4afbe79e0568bbf180e.png\"\/>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u043e\u0435 \u0425\u0430\u0431\u0440\u0430\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e!<\/p>\n<p>  \u042f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u043e\u0432. \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0433\u043e\u0442\u043e\u0432\u044b\u0435 CMS, \u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043a\u0438\u0440\u043f\u0438\u0447\u0438\u043a\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0438 \u0430\u0434\u043c\u0438\u043d\u0441\u043a\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u044b \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0443, \u043d\u043e \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c. \u0418 \u0435\u0441\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u044d\u0442\u043e \u043f\u043e\u043b \u0431\u0435\u0434\u044b, \u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0435\u0449\u0451 \u0438 \u0432\u0435\u0440\u0441\u0442\u0430\u0442\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<p>  \u0414\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"http:\/\/twitter.github.com\/bootstrap\/\">Twitter Bootstrap<\/a>, \u043d\u043e \u043e\u043d \u043d\u0435 \u043c\u043e\u0433 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u044c \u0432\u0441\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0438. \u041f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0432\u0435\u0440\u0441\u0442\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0438 \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b. \u041d\u043e \u0432\u043e\u0442 \u043e\u0434\u043d\u0430\u0436\u0434\u044b, \u044f \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b\u0441\u044f \u0441 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c UI-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c <a href=\"http:\/\/www.kendoui.com\/\">KendoUI<\/a> \u043e\u0442 <a href=\"http:\/\/www.telerik.com\/\">Telerik<\/a>. \u0427\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-175457","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/175457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=175457"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/175457\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=175457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=175457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=175457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}