or
.ToolBar(toolbar => toolbar.Create().Text("Add"))
01.
@(Html.Kendo().Grid<
TestRowClass
>()
02.
.Name("TestGrid")
03.
.ToolBar(toolbar => toolbar.Template(@<
text
>
04.
@(Html.Kendo().AutoComplete()
05.
.Name("TestAutoComplete")
06.
)
07.
</
text
>)
08.
)
09.
)
@(Html.Kendo().Notification()
.Name(
"notification"
)
.Position(p => p.Pinned(
true
).Top(30).Right(30))
.Stacking(NotificationStackingSettings.Down)
.AutoHideAfter(0)
.Templates(t =>
{
t.Add().Type(
"info"
).ClientTemplateID(
"infoTemplate"
);
t.Add().Type(
"success"
).ClientTemplateID(
"successTemplate"
);
t.Add().Type(
"error"
).ClientTemplateID(
"errorTemplate"
);
t.Add().Type(
"warning"
).ClientTemplateID(
"warningTemplate"
);
})
)
notification.show({
message:
"Upload Successful"
,
},
"success"
);
@(Html.Kendo().DropDownListFor(m=> m.SelectedProduct)
.HtmlAttributes(new { style = "width: 250px" })
.DataTextField("ProductName")
.DataValueField("ProductID")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetProducts", "DropdownList");
});
})
)
public
ActionResult RemoteDataSource()
{
var model =
new
RemoteDataSourceViewModel()
{
SelectedProduct =
new
SelectedProduct()
{
ProductID = 7,
ProductName =
"Uncle Bob's Organic Dried Pears"
}
};
return
View(model);
}