All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
I have an editable grid with a custom template:
1.
.Editable(editable => editable
2.
.Mode(GridEditMode.PopUp)
3.
.Window(w => w.Width(600))
4.
.TemplateName("Inspection")
5.
)
In the template I have two drop downs.
01.
@(Html.Kendo().DropDownListFor(model => model.CloseoutStatusID)
02.
.DataValueField("LookUpID")
03.
.DataTextField("LookUpText")
04.
.DataSource( source => {
05.
source.Read(read =>
06.
{
07.
read.Action("Get", "LookUp", new { LookUp = "CloseOutStatus" });
08.
});
09.
})
10.
and
@(Html.Kendo().DropDownListFor(model => model.InspectionStatus)
.BindTo(new List<
SelectListItem
>()
new SelectListItem() { Text = "Pass", Value = "1" },
new SelectListItem() { Text = "Fail", Value = "0" }
In the model they are both set to required and have default values...
[Required]
[DefaultValue(
true
)]
public
int
InspectionStatus {
get
;
set
; }
6.
[DefaultValue(2)]
7.
CloseoutStatusID {
When I try to add a new item the default values do not display.... the bool returns a false and the int returns a 0 by default.