Hi, I'm using a Kendo Grid which has it's editable mode to popUp. When the edit screen pops up, all the fields from my model are displayed (this is what I want to happen). Many of the fields however, I want to be readonly (or disabled actually). I have an OnEdit method for the grid which is able to make many of the fields disabled, BUT the datepickers are still able to be clicked and the user is able to select a date from the popup calendar.
How can I make the Dropdowns truly disabled so they cannot be clicked to display calendar AND also LOOK disabled?? BTW using $("#AccountLockPeriod").data("kendoDatePicker").enable(false) does not work.
Here is my method:
How can I make the Dropdowns truly disabled so they cannot be clicked to display calendar AND also LOOK disabled?? BTW using $("#AccountLockPeriod").data("kendoDatePicker").enable(false) does not work.
Here is my method:
<
script
>
function onEdit(e) {
$("#Id").attr("disabled", true);
$("#UserName").attr("disabled", true);
$("#AccountLockPeriod").attr("disabled", true);
$("#IncorrectLogonAttempts").attr("disabled", true);
$("#LastLogOn").attr("disabled", true);
$("#InactivateDate").attr("disabled", true);
$("#CreateDate").attr("disabled", true);
$("#LastUpdateDate").attr("disabled", true);
$("#RegistrationStatus").attr("disabled", true);
}
</
script
>