Error: Sys.WebForms.PageRequestManagerParserErrorException:
I have a page which I want to be able to do 2 things, but so far I get the error above when I try to enable both of them.
First I have my sliding pane which works just fine and all is good. Inside the pane is a control with a button. This button works fine as well (and it works on other pages too). The problem is when I add code to have the sliding pane open through code (posted below) I get the error mentioned above and it will not work. How can I fix this? come more details about my setup.
Code to open pane:
Code for Ajax Manager - this is the code which A) makes the pane correctly slide out when a specified item is selected and B) causes the error being thrown when the button is clicked.
PManagerSummary1 is the user control which has the button to be clicked and is the control in the sliding pane which slides out.
I have a page which I want to be able to do 2 things, but so far I get the error above when I try to enable both of them.
First I have my sliding pane which works just fine and all is good. Inside the pane is a control with a button. This button works fine as well (and it works on other pages too). The problem is when I add code to have the sliding pane open through code (posted below) I get the error mentioned above and it will not work. How can I fix this? come more details about my setup.
Code to open pane:
<
telerik:RadScriptBlock
runat
=
"server"
>
<
script
type
=
"text/javascript"
language
=
"javascript"
>
function pageLoaded(sender, args) {
var settings = sender._postBackSettings;
if (settings != null) {
var postbackControlID = new String(settings.sourceElement.id);
if (postbackControlID.toUpperCase().indexOf("PRIORITYLINKBUTTON", 0) > 0) {
var slidingZone = $find("<%= RadSlidingZone1.ClientID %>");
if (slidingZone != null) {
var prioritySlidingPane = slidingZone.getPaneById("<%= RightSlidePane.ClientID %>");
slidingZone.expandPane("<%= RightSlidePane.ClientID %>");
}
}
}
}
</
script
>
<
script
type
=
"text/javascript"
language
=
"javascript"
>
Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(pageLoaded)
</
script
>
Code for Ajax Manager - this is the code which A) makes the pane correctly slide out when a specified item is selected and B) causes the error being thrown when the button is clicked.
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"CollaborateDiscussionPanel"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"CollaborateDiscussionPanel"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"PManagerSummary1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"PManagerSummary1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"PManagerSummary1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>