Afternoon,
Is there a way to display a formatted date in a readonly TextBox on a kendo form without using a DateTimePicker as below?
items.Add()
.Field(f => f.Datelastedited)
.Label(l => l.Text("Date Last Edited:"))
.Editor(e => e.DateTimePicker()
.HtmlAttributes(new { style = "width: 100%", title = "datetimepicker" })
.Format("{0:dd/MM/yyyy HH:mm:ss tt}"))
.InputHtmlAttributes(new { @readonly = "readonly" });
I want the TextBox to be readonly so I don't need the ability to change the value, or display the buttons to set the time or date elements.
A NumericTextBox has a Format method, but the TestBox doesn't.
Kind regards,
Richard