This question is locked. New answers and comments are not allowed.
<% var numericTextBox = Html.Telerik() |
.NumericTextBox() |
.Name(model.name) |
.Value(model.value) |
.MaxValue(10000) |
.MinValue(0) |
.Spinners(model.spinnersActive); %> |
<% if (model.readOnly) numericTextBoxnumericTextBox = numericTextBox.InputHtmlAttributes(new { @readonly = "readonly", disabled = "disabled" }); %> |
<%= numericTextBox%> |
I have read the other thread using java script. But I am looking for a simpler solution and use javaScript only in cases where it is inevitable.