Yes, it doesn't work.
This code returns a DateRangeField instance. This widget is defined in the calendar's sources. You can review them to get a representation how this widget looks.
this.get(0).get(1)
So, I can suggest to handle 'render' event of this field to get what you want.
Here you are.
Example
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Ext.Net Example</title>
<script type="text/javascript">
var CompanyX = {
getWindow : function () {
return CompanyX.EventEditWindow1;
},
dayClick : function (cal, dt, allDay, el) {
this.record.show.call(this, cal, { StartDate: dt, IsAllDay: allDay }, el);
},
record : {
show : function (cal, rec, el) {
CompanyX.getWindow().show(rec, el);
}
}
};
</script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" Namespace="CompanyX" />
<ext:Viewport runat="server" Layout="fit">
<Items>
<ext:CalendarPanel runat="server" Height="500">
<EventStore runat="server" />
<GroupStore ID="GroupStore1" runat="server">
<Groups>
<ext:Group CalendarId="1" Title="Home" />
<ext:Group CalendarId="2" Title="Work" />
<ext:Group CalendarId="3" Title="School" />
<ext:Group CalendarId="4" Title="Other" />
</Groups>
</GroupStore>
<Listeners>
<DayClick Fn="CompanyX.dayClick" Scope="CompanyX" />
</Listeners>
</ext:CalendarPanel>
</Items>
</ext:Viewport>
<ext:EventEditWindow ID="EventEditWindow1" runat="server" Hidden="true" GroupStoreID="GroupStore1">
<Listeners>
<Render Handler="this.get(0).get(0).readOnly = true;
this.get(0).get(1).on('render', function () {
this.startDate.setReadOnly(true);
this.startTime.setReadOnly(true);
this.endDate.setReadOnly(true);
this.endTime.setReadOnly(true);
this.allDay.setDisabled(true);
});" />
</Listeners>
</ext:EventEditWindow>
</form>
</body>
</html>
To get the info why I use .setDisabled() for a checkbox, please follow:
http://forums.ext.net/showthread.php?10056