or
public GridBuilder<T> TableHtmlAttributes(IDictionary<string, object> attributes){ this.Component.TableHtmlAttributes.Clear(); Kendo.Mvc.Extensions.DictionaryExtensions.Merge(this.Component.TableHtmlAttributes, attributes); return this;}.TableHtmlAttributes(new KeyValuePair<string, object>("k-grid-tab-new-row", null).ToDictionary()).TableHtmlAttributes(new KeyValuePair<string, object>("class", "custom-table-hover table table-bordered no-footer k-grid-single-line ").ToDictionary())public static GridBuilder<T> TabNewRow<T>(this GridBuilder<T> builder)where T : class{ return builder.TableHtmlAttributes(new KeyValuePair<string, object>("k-grid-tab-new-row", null).ToDictionary());}
01.@(Html.Kendo().TreeView()02. .Name("tvHistory")03. .Animation(animation => animation.Expand(open =>04. {05. open.Expand(ExpandDirection.Vertical);06. open.Fade(FadeDirection.In);07. }))08. .Items(treeview => treeview.Add().Text("History").Id(Model.Id.ToString()))09. .DataTextField("Description")10. .AutoBind(false)11. .DataSource(dataSource => dataSource.Read(read => read.Action("History", "Reservation")))12.)01.[HttpGet]02.public ActionResult History(int id)03.{04. IList<ReservationHistory> histories = _reservationService.GetHistoryFor(id).DataList;05. IList<ReservationHistoryViewModel> viewModels = histories.ToModel<ReservationHistory, ReservationHistoryViewModel>();06. 07. return Json(viewModels, JsonRequestBehavior.AllowGet);08.}09. 10.public class ReservationHistoryViewModel11.{12. public int Id { get; set; }13. public int ReservationId { get; set; }14. public string Description { get; set; }15.}