or
$(
"#number"
).kendoNumericTextBox({
format:
"c0"
,
decimals: 2,
spinners:
false
});
function
updateNumber() {
var
numberBox = $(
"#number"
).data(
"kendoNumericTextBox"
);
var
anothernumberBox = $(
"#anotherNumber"
).data(
"kendoNumericTextBox"
);
var
yetanothernumberBox = $(
"#yetanotherNumber"
).data(
"kendoNumericTextBox"
);
try
{
numberBox.value(anothernumberBox.value() - yetanothernumberBox.value());
}
catch
(err) {
//
}
};
.k-menu .k-animation-container,
.k-popup .k-animation-container {
margin-top
:
-1px
;
margin-top
:
-2px
\
9
;
padding-left
:
1px
;
}
margin-top
:
-2px
\
9
;
.k-menu .k-animation-container,
.k-popup .k-animation-container
{
margin-top
:
-1px
;
margin-top
: ~
"-2px\9"
;
padding-left
:
1px
;
}
Failed to query command status: System.Runtime.InteropServices.COMException <br>(0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL)) at <br>EnvDTE._DTE.get_ActiveSolutionProjects() at <br>Telerik.VSX.Internal.ProjectManagement.ProjectRetriever.GetFirstSelectedProject(DTE <br>dte) at <br>Telerik.VSX.Internal.ProjectManagement.ProjectWrapFactoryBase`1.GetForFirstSelectedProject(DTE <br>dte) at <br>Telerik.KendoUI.Mvc.VSPackage.CommandStateController.GetState(OleMenuCommand <br>menuCommand, DTE dte) at <br>Telerik.VSX.CommandStateResolving.CommandStateControllerBase.GetAsyncState(OleMenuCommand <br>menuCommand, DTE dte) at <br>Telerik.VSX.VSPackage.PackageBase.MenuCommand_BeforeQueryStatus(Object sender, <br>EventArgs e)
@model IEnumerable<
PASSLibrary.Laboratory
>
@{
ViewBag.Title = "Laboratories";
}
<
h2
>Laboratories</
h2
>
@(Html.Kendo().Grid(Model)
.Name("gvLaboratories")
.Columns(columns =>
{
columns.Command(command => { command.Edit(); }).Width(50);
columns.Bound(l => l.ID);
columns.Bound(l => l.Description);
columns.Command(command => { command.Destroy(); }).Width(50);
})
.DetailTemplate(l =>
{
Html.Kendo().TabStrip()
.Name("ts" + l.ID)
.SelectedIndex(0)
.Items(items =>
{
items.Add().Text("Lab Admins").Content(@<
text
>
@(Html.Kendo().Grid(l.Users_Roles)
.Name("gvLabAdmins" + l.ID)
.Columns(columns =>
{
columns.Bound(a => a.User_ID).Title("User ID");
columns.Bound(a => a.User.Account).Title("BNL Account");
columns.Command(command => { command.Destroy(); }).Width(50);
})
.ToolBar(toolbar => toolbar.Create())
.Sortable()
.DataSource(dataSource => dataSource
.Server()
.Model(model => model.Id(a => a.User_ID))
.Create(create => create.Action("AddLabAdmin", "SystemAdmin"))
.Destroy(destroy => destroy.Action("DeleteLabAdmin", "SystemAdmin"))
)
)
</
text
>);
items.Add().Text("Facilities").Content(@<
text
>
@(Html.Kendo().Grid(l.Facilities)
.Name("gvFacilities" + l.ID)
.Columns(columns =>
{
columns.Bound(f => f.ID);
columns.Bound(f => f.Description);
columns.Command(command => { command.Destroy(); }).Width(50);
})
.ToolBar(toolbar => toolbar.Create())
.Sortable()
.DataSource(dataSource => dataSource
.Server()
.Model(model => model.Id(f => f.ID))
.Create(create => create.Action("AddFacility", "SystemAdmin"))
.Destroy(destroy => destroy.Action("DeleteFacility", "SystemAdmin"))
)
)
</
text
>);
})
.Render();
})
.ToolBar(toolbar => toolbar.Create())
.Editable(editable => editable.Mode(GridEditMode.PopUp).Window(window => window.HtmlAttributes(new { @style = "width:700px;" })))
.Pageable()
.Sortable()
.DataSource(dataSource => dataSource
.Server()
.Model(model => model.Id(l => l.ID))
.Create(create => create.Action("AddLaboratory", "SystemAdmin"))
.Read(read => read.Action("Laboratories", "SystemAdmin"))
.Update(update => update.Action("UpdateLaboratory", "SystemAdmin"))
.Destroy(destroy => destroy.Action("DeleteLaboratory", "SystemAdmin"))
)
)