Is it possible to add the AutoComplete control to the ToolBar
I was trying something like this but I don't think I'm on the right track.
Thanks,
Richard
@(Html.Kendo().ToolBar()
.Name(
"ToolBar"
)
.Items(items =>
{
items.Add().Type(CommandType.Button).Text(
"Button"
);
items.Add().Type(CommandType.Button).Text(
"Toggle Button"
).Togglable(
true
);
items.Add().Type(CommandType.Separator);
items.Add().Template(
"<label for='dropdown'>Search:</label>"
);
items.Add().Template(
@(Html.Kendo().AutoComplete()
.Name(
"GridSearch"
)
.DataTextField(
"AppName"
)
.Filter(FilterType.Contains)
.MinLength(2)
.DataSource(
"GridDataSource"
)
) ;