We need to
reference to #JustNum, but we don’t find anyway to do it.
@
using
SGIRO2014.Models;
@model
object
<script type=
"text/javascript"
>
function ChangeDocType(e) {
$(
"#JustNum"
).prop(
"disabled"
, (
this
.value() == @((
short
)documentType.FI)));
}
</script>
@(Html.Kendo().DropDownListFor(m => m)
.HtmlAttributes(
new
{ style =
"width:100px"
})
.ValuePrimitive(
true
)
.OptionLabel(
"-please select-"
)
.BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName(
""
) +
"_Data"
])
.Events(e => e.Change(
"ChangeDocType"
))
)
@Html.Kendo().TextBoxFor(m => m).Name(
"DocNum"
).HtmlAttributes(
new
{ style =
"width:100px"
})
@Html.Kendo().TextBoxFor(m => m).Name(
"JustNum"
).HtmlAttributes(
new
{ style =
"width:40px"
, maxlength =
"2"
})
Thanks in advance
Xavier de la Rubia.