or
@(Html.Kendo().RadialGauge() .Name("gauge1") .Pointer(pointer => pointer .Color("#8EBC00") .Value(@ViewBag.ServiceLevel)) .Scale(scale => scale .MinorUnit(5) .StartAngle(0) .EndAngle(180) .Max(100) .Labels(labels => labels .Position(GaugeRadialScaleLabelsPosition.Outside)) .Ranges(ranges => { ranges.Add().From(0).To(5).Color("#c20000"); ranges.Add().From(5).To(25).Color("#ff7a00"); ranges.Add().From(25).To(60).Color("#ffc700"); }) ))autoBind: true,selectable: true,groupable: true,sortable: { mode: "multiple", allowUnsort: true},filterable: true,scrollable: false,pageable: true,navigatable: true,reorderable: true,resizeable: true,columnMenu: true@(Html.Kendo().Grid(Model) .Name("somegrid") .Columns(columns => { columns.Bound(Folder => Folder.ParentId).Template(@<text> <strong>@if (item.ParentId > 0) { <span>@callfunction(item.Name) (call some serverside function using item variable which returns string ( but not parentId another one ) )</span> } else { <span>@call some serverside function</span> } </strong> </text>); columns.Command(command => { command.Edit().Text("Güncelle").UpdateText("Güncelle").CancelText("İptal"); command.Destroy().Text("Sil"); }).Width(180); }) .ToolBar(toolbar => toolbar.Create().Text("Yeni kayit ekle")) .Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("FolderEditPopup").DisplayDeleteConfirmation("Kaydı silmek istediğinizden emin misiniz ?")) .Pageable(pager => pager .Messages(messages => messages.Display("{0} - {1}. Toplam {2} kayıt") .ItemsPerPage("") .First("İlk sayfa") .Last("Son sayfa") .Next("Sonraki") .Page("Sayfa") .Previous("Önceki") .Refresh("Yenile")) ) .Sortable() .Scrollable() .Events(e => e.Edit("onEdit")) .DataSource(dataSource => dataSource .Ajax() .PageSize(100000) .Model(model => { model.Id(p => p.IntId); model.Field(p => p.ParentId).DefaultValue(0); }) .Events(events => events.Error("error_handler")) .Create(update => update.Action("FolderPopup_Create", "Config")) .Read(read => read.Action("FolderPopup_Read", "Config")) .Update(update => update.Action("FolderPopup_Update", "Config")) .Destroy(update => update.Action("FolderPopup_Destroy", "Config")) ) ).km-ios .km-button[disabled]{ color:#ccc; cursor:default;}.km-ios .km-button[disabled]:active{ color:#ccc; background-color:#7185A2; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); -webkit-box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); cursor:default; }<button type="button" data-role="button" disabled="disabled">My button</button>
