Hi. We've recently upgraded to version 2010_3_1109 from the Q2 version and the advanced form seems to be partially hidden. Controls like RadTextBox and regular ASP buttons seem okay. But it looks like the whole container is hidden behind the "faded" style that is applied when entering a modal form. I've tried setting ZIndex on the advanced form property but nothing happens. We use a custom advanced form which is in an ASCX that is basically a table with textboxes. I've also attached a screen. Thanks.
Daniel
Daniel
<
telerik:RadScheduler
ID
=
"rsCalendar"
runat
=
"server"
Skin
=
"Vista"
DataEndField
=
"end_date"
DataKeyField
=
"id"
DataSourceID
=
"sdsCalendar"
DataStartField
=
"start_date"
DataSubjectField
=
"subject"
CustomAttributeNames
=
"location"
SelectedView
=
"MonthView"
DataDescriptionField
=
"details"
DataRecurrenceField
=
"recurrence_rule"
DataRecurrenceParentKeyField
=
"recurrence_rule_parent_id"
EnableDescriptionField
=
"true"
EnableCustomAttributeEditing
=
"true"
AppointmentStyleMode
=
"Default"
OnAppointmentDelete
=
"rsCalendar_AppointmentDelete"
OnAppointmentInsert
=
"rsCalendar_AppointmentInsert"
OnAppointmentUpdate
=
"rsCalendar_AppointmentUpdate"
OnAppointmentCreated
=
"rsCalendar_AppointmentCreated"
DayStartTime
=
"07:00:00"
DayEndTime
=
"19:00:00"
FirstDayOfWeek
=
"Monday"
LastDayOfWeek
=
"Friday"
Culture
=
"en-AU"
OnClientFormCreated
=
"schedulerFormCreated"
Height
=
"100%"
StartInsertingInAdvancedForm
=
"true"
>
<
AdvancedForm
Modal
=
"true"
ZIndex
=
"10005"
/>
<
AdvancedEditTemplate
>
<
scheduler:AdvancedForm
runat
=
"server"
ID
=
"AdvancedEditForm1"
Mode
=
"Edit"
Subject='<%# Bind("subject") %>'
Description='<%# Bind("description") %>' Start='<%# Bind("start") %>' End='<%# Bind("end") %>'
Location='<%# Bind("location") %>' />
</
AdvancedEditTemplate
>
<
AdvancedInsertTemplate
>
<
scheduler:AdvancedForm
runat
=
"server"
ID
=
"AdvancedInsertForm1"
Mode
=
"Insert"
Subject='<%# Bind("subject") %>'
Description='<%# Bind("description") %>' Start='<%# Bind("start") %>' End='<%# Bind("end") %>'
Location='<%# Bind("location") %>' />
</
AdvancedInsertTemplate
>
</
telerik:RadScheduler
>
<script type=
"text/javascript"
>
//<![CDATA[
// Dictionary containing the advanced template client object
// for a given RadScheduler instance (the control ID is used as key).
var
schedulerTemplates = {};
function
schedulerFormCreated(scheduler, eventArgs) {
// Create a client-side object only for the advanced templates
var
mode = eventArgs.get_mode();
if
(mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert ||
mode == Telerik.Web.UI.SchedulerFormMode.AdvancedEdit) {
// Initialize the client-side object for the advanced form
var
formElement = eventArgs.get_formElement();
var
templateKey = scheduler.get_id() +
"_"
+ mode;
var
advancedTemplate = schedulerTemplates[templateKey];
if
(!advancedTemplate) {
// Initialize the template for this RadScheduler instance
// and cache it in the schedulerTemplates dictionary
var
schedulerElement = scheduler.get_element();
var
isModal = scheduler.get_advancedFormSettings().modal;
advancedTemplate =
new
window.SchedulerAdvancedTemplate(schedulerElement, formElement, isModal);
advancedTemplate.initialize();
schedulerTemplates[templateKey] = advancedTemplate;
// Remove the template object from the dictionary on dispose.
scheduler.add_disposing(
function
() {
schedulerTemplates[templateKey] =
null
;
});
}
// Are we using Web Service data binding?
if
(!scheduler.get_webServiceSettings().get_isEmpty()) {
// Populate the form with the appointment data
var
apt = eventArgs.get_appointment();
var
isInsert = mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert;
advancedTemplate.populate(apt, isInsert);
}
}
}
function
hideActiveToolTip() {
var
tooltip = Telerik.Web.UI.RadToolTip.getCurrent();
if
(tooltip) {
tooltip.hide();
}
}
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandler);
function
beginRequestHandler(sender, args) {
var
prm = Sys.WebForms.PageRequestManager.getInstance();
if
(args.get_postBackElement().id.indexOf(
'rsCalendar'
) != -1) {
hideActiveToolTip();
}
}
function
clientBeforeShow(sender, eventArgs) {
w = $telerik.$(window).width() / 2;
h = $telerik.$(window).height() / 2;
if
((sender._mouseX > w) && (sender._mouseY > h)) {
sender.set_position(Telerik.Web.UI.ToolTipPosition.TopLeft);
return
;
}
if
((sender._mouseX < w) && (sender._mouseY > h)) {
sender.set_position(Telerik.Web.UI.ToolTipPosition.TopRight);
return
;
}
if
((sender._mouseX > w) && (sender._mouseY < h)) {
sender.set_position(Telerik.Web.UI.ToolTipPosition.BottomLeft);
return
;
}
sender.set_position(Telerik.Web.UI.ToolTipPosition.BottomRight);
}
function
openRadWindowTrainingDates() {
var
oWnd = radopen(
"/teams/hr/training.aspx"
);
oWnd.add_close(
"OnClientClose"
);
oWnd.Center();
}
function
ClientClicked() {
window.location.href =
"/teams/hr/corporate_training_calendar/add_content/"
;
}
function
ToolbarOnClientButtonClicked(sender, args) {
var
button = args.get_item();
if
(button.get_text() ==
"Show Training Courses"
) {
var
oWnd = radopen(
"/teams/hr/training.aspx"
);
oWnd.add_close(
"OnClientClose"
);
oWnd.Center();
}
}
//]]>
</script>