or
void
RadScheduler1_FormCreated(
object
sender, Telerik.Web.UI.SchedulerFormCreatedEventArgs e)
{
if
(e.Container.Mode == SchedulerFormMode.AdvancedInsert
|| e.Container.Mode == SchedulerFormMode.AdvancedEdit)
{
RadDatePicker startDate = (RadDatePicker)e.Container.FindControl(
"StartDate"
);
startDate.Enabled =
false
;
}
}
2008 | 2009 | 2010 | |||
CashCol | CashCol | CashCol | CashCol | ||
|
Akron | 885258 | 962375 | 942707 | 486013 |
Allen | Allen | 0 | 0 | 321862 | 301088 |
Alpharetta I | Alpharetta I | 914431 | 969684 | 838121 | 458535 |
Alpharetta II | Alpharetta II | 1387447 | 1346855 | 1170927 | 652933 |
Alpharetta III | Alpharetta III | 1787545 | 1928258 | 1764613 | 956510 |
Amelia | Amelia | 1053449 | 1096630 | 1038868 | 595816 |
function
setCalendarTable() {
var
picker = $find(
"<%= radDate.ClientID %>"
);
var
calendar = picker.get_calendar();
var
fastNavigation = calendar._getFastNavigation();
$clearHandlers(picker.get_popupButton());
picker.get_popupButton().href =
"javascript:void(0);"
;
$addHandler(picker.get_popupButton(),
"click"
,
function
() {
var
textbox = picker.get_textBox();
//adjust where to show the popup table
var
x, y;
var
adjustElement = textbox;
if
(textbox.style.display ==
"none"
)
adjustElement = picker.get_popupImage();
var
pos = picker.getElementPosition(adjustElement);
x = pos.x;
y = pos.y + adjustElement.offsetHeight;
var
e = {
clientX: x,
clientY: y - document.documentElement.scrollTop
};
//synchronize the input date if set with the picker one
var
date = picker.get_selectedDate();
if
(date) {
calendar.get_focusedDate()[0] = date.getFullYear();
calendar.get_focusedDate()[1] = date.getMonth() + 1;
}
$get(calendar._titleID).onclick(e);
return
false
;
});
fastNavigation.OnOK =
function
() {
var
date =
new
Date(fastNavigation.Year, fastNavigation.Month, 1);
picker.get_dateInput().set_selectedDate(date);
fastNavigation.Popup.Hide();
}
fastNavigation.OnToday =
function
() {
var
date =
new
Date();
picker.get_dateInput().set_selectedDate(date);
fastNavigation.Popup.Hide();
}
}
if (!IsPostBack)
{
radDate.DatePopupButton.Attributes.Add("onclick", "setCalendarTable();return false;");
radDate.SelectedDate = Convert.ToDateTime(DateTime.Now.ToString("MMMM-yyyy"));
}
var priInsZip = document.getElementById("priInsZip");
priInsZip.value = InsZip;