Hi All
Am recently starting to work with Kendo Grid (i'm new to MVC) and had the following requirement.
1) A tool bar that contains the Save and Cancel Button, as well as a filter for months
So i did the following
.ToolBar(toolbar =>
{
toolbar.Save();
toolbar.Template(@<
text
>
<
div
class
=
"toolbar"
>
<
label
class
=
"fismonth-lable"
for
=
"fiscalmonth"
>Show fiscal months:</
label
>
@(Html.Kendo().DropDownList()
.Name("fiscalmonth")
.OptionLabel("All")
.AutoBind(false)
.Events(e => e.Change("fiscalmonthChange"))
.HtmlAttributes(new { style = "width:150px;" })
.DataSource(ds =>
{
ds.Read("Toolbar_FiscalMonth", "Home");
})
)
</
div
>
</
text
>);
})
But only the dropdown showed up. Am i missing something?
Secondly, i have a Boolean column that i wish to be displayed and edited as a checkbox. This is what i did
columns.Bound(p => p.IsSelectedForValidation).Filterable(false).Title("").ClientTemplate("<
input
type
=
'checkbox'
#= IsSelectedForValidation?
checked
=
'checked'
: '' #
id
=
'#=ID#'
></
input
>").Width(30);
It does show as a checkbox, and i can check and uncheck it, but the "real" editing will still take place as a dropdown of "true/false". Am i missing something?
Thank you so much for your kind help.
Regards,
Su Ming