I have been battling a problem recently with RadAjaxManager.
I have a RadButton that opens a RadWindow using AJAX (calls a postback that set's VisibleOnPageLoad=true). But any button in the window that was open won't make it's postback through ajax. Instead it makes the request through a normal postback. If I set the RadButton to do a normal postback (not setup an ajaxsetting for it) then the buttons in the RadWindow work.
Any ideas on what I am doing wrong? I have tried searching the form and google to find a solutions and can't find anyone else that is having the same problem.
I have included the parts of code that are related to the problem (i hope)... thanks in advance.
I have a RadButton that opens a RadWindow using AJAX (calls a postback that set's VisibleOnPageLoad=true). But any button in the window that was open won't make it's postback through ajax. Instead it makes the request through a normal postback. If I set the RadButton to do a normal postback (not setup an ajaxsetting for it) then the buttons in the RadWindow work.
Any ideas on what I am doing wrong? I have tried searching the form and google to find a solutions and can't find anyone else that is having the same problem.
I have included the parts of code that are related to the problem (i hope)... thanks in advance.
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
Skin
=
"Default"
IsSticky
=
"true"
style
=
"position:absolute; top:0; left:0; height:100; width;"
>
</
telerik:RadAjaxLoadingPanel
>
<
telerik:RadAjaxManager
ID
=
"AjaxManager"
runat
=
"server"
DefaultLoadingPanelID
=
"RadAjaxLoadingPanel1"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnAddTeachingActivity"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"windowExistingActivity"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"radioExisitingActivity"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"windowExistingActivity"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"windowAddTeachingActivity"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadButton
ID
=
"btnAddTeachingActivity"
runat
=
"server"
Text
=
"Add Teaching Activity"
OnClick
=
"btnAddTeachingActivity_Click"
>
<
Icon
PrimaryIconUrl
=
"template/Icons/add.png"
/>
</
telerik:RadButton
>
<
telerik:RadWindow
ID
=
"windowExistingActivity"
runat
=
"server"
IconUrl
=
"template/icons/add.png"
Title
=
"Add New Teaching Activity"
Behaviors
=
"Close, Move"
Modal
=
"true"
VisibleStatusbar
=
"false"
AutoSize
=
"false"
Width
=
"500px"
Height
=
"200px"
>
<
ContentTemplate
>
<
div
class
=
"roundGrayBox"
style
=
"width: 435px; margin-left: 10px; margin-right: 10px; margin-top: 15px;"
>
<
asp:Panel
ID
=
"pnlExisitingActivityQuestion"
runat
=
"server"
>
<
h2
>Have you entered this teaching activity into the system previously?</
h2
>
<
asp:RadioButtonList
ID
=
"radioExisitingActivity"
runat
=
"server"
AutoPostBack
=
"true"
OnSelectedIndexChanged
=
"radioExisitingActivity_SelectedIndexChanged"
>
<
asp:ListItem
Text
=
"Yes"
/>
<
asp:ListItem
Text
=
"No"
/>
</
asp:RadioButtonList
>
</
asp:Panel
>
<
asp:Panel
ID
=
"pnlExisitingActivitySelection"
runat
=
"server"
Visible
=
"false"
>
<
h2
>Select Exisiting Activity</
h2
>
<
table
width
=
"100%"
>
<
tr
>
<
td
>Academic Year:</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"ddlExisitingActivityYear"
runat
=
"server"
Width
=
"150px"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
>Activitiy:</
td
>
<
td
>
<
telerik:RadComboBox
ID
=
"ddlExisitingActivities"
runat
=
"server"
Width
=
"100%"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
</
table
>
<
telerik:RadButton
ID
=
"btnExisitingActivity"
runat
=
"server"
Text
=
"Start With Exisiting Activity"
/>
</
asp:Panel
>
</
div
>
</
ContentTemplate
>
</
telerik:RadWindow
>
protected
void
btnAddTeachingActivity_Click(
object
sender, EventArgs e)
{
windowExistingActivity.VisibleOnPageLoad =
true
;
}
protected
void
radioExisitingActivity_SelectedIndexChanged(
object
sender, EventArgs e)
{
if
(radioExisitingActivity.SelectedValue ==
"Yes"
)
{
windowExistingActivity.VisibleOnPageLoad =
true
;
pnlExisitingActivitySelection.Visible =
true
;
pnlExisitingActivityQuestion.Visible =
false
;
}
else
{
hiddenTeachingActivityId.Value =
""
;
windowAddTeachingActivity.Title =
"Add Teaching Activity"
;
windowAddTeachingActivity.IconUrl =
"template/icons/add.png"
;
windowAddTeachingActivity.VisibleOnPageLoad =
true
;
txtContactHours.Value =
null
;
txtNumberOfLeaners.Value =
null
;
txtTitle.Text =
""
;
ddlAcademicYear.SelectedIndex = 0;
ddlLearners.ClearSelection();
ddlLocation.SelectedIndex = 0;
ddlSemester.SelectedIndex = 0;
ddlStrategy.SelectedIndex = 0;
}