Hi
I am using Radwindow as a modal popup for inline form editing. I have created a wizard, using standard 'asp:panels', inside the ContentTemplate of the Radwindow to break up the form in to smaller chunks. In each asp:panel there is a 'next' and 'back' button which is used to navigate between them. These buttons control server side functions to show/hide the various panels during navigation, and perform some form validation etc. in the background. I need this server side functionality.
I posted a message before to prevent flickering between navigation steps and the solution provided was to use a RadAjaxpanel. This worked fine until I try to close the Radwindow using a button with server side code. The server side code is again necessary, as this button saves the content of the form in the Radwindow before closing the Radwindow.
The problem is that when the 'save' button is clicked the Radwindow does not disappear - it will only do this if the RadAjaxpanel is removed from the code - but I need the RadAjaxpanel to prevent the flickering! My sample code is below. Any ideas?
Thanks in advance.
Kevin
PS This code is in a dynamically loaded usercontrol in a page with a master page - a standard 'asp:ScriptManager' is in this master page.
I am using Radwindow as a modal popup for inline form editing. I have created a wizard, using standard 'asp:panels', inside the ContentTemplate of the Radwindow to break up the form in to smaller chunks. In each asp:panel there is a 'next' and 'back' button which is used to navigate between them. These buttons control server side functions to show/hide the various panels during navigation, and perform some form validation etc. in the background. I need this server side functionality.
I posted a message before to prevent flickering between navigation steps and the solution provided was to use a RadAjaxpanel. This worked fine until I try to close the Radwindow using a button with server side code. The server side code is again necessary, as this button saves the content of the form in the Radwindow before closing the Radwindow.
The problem is that when the 'save' button is clicked the Radwindow does not disappear - it will only do this if the RadAjaxpanel is removed from the code - but I need the RadAjaxpanel to prevent the flickering! My sample code is below. Any ideas?
Thanks in advance.
Kevin
PS This code is in a dynamically loaded usercontrol in a page with a master page - a standard 'asp:ScriptManager' is in this master page.
<
asp:Button
ID
=
"ButtonAddNew"
Text
=
"Open RadWindow"
runat
=
"server"
CausesValidation
=
"false"
OnClick
=
"ButtonAddNew_Click"
/>
<
telerik:RadWindowManager
ID
=
"RadWindowManager01"
Modal
=
"true"
runat
=
"server"
>
<
Windows
>
</
Windows
>
</
telerik:RadWindowManager
>
<
telerik:RadWindow
ID
=
"RadWindowImageEdit"
InitialBehaviors
=
"Pin"
Skin
=
"Sitefinity"
Width
=
"920"
AutoSize
=
"true"
AutoSizeBehaviors
=
"Height"
EnableEmbeddedSkins
=
"false"
EnableEmbeddedBasestylesheet
=
"false"
Behaviors
=
"Close"
VisibleTitlebar
=
"true"
VisibleStatusbar
=
"false"
KeepInScreenBounds
=
"true"
EnableShadow
=
"false"
VisibleOnPageLoad
=
"False"
Modal
=
"true"
runat
=
"server"
>
<
ContentTemplate
>
<
div
style
=
"width: 867px; padding: 10px;"
>
<
telerik:RadAjaxPanel
ID
=
"RadAjaxPanel2"
runat
=
"server"
>
<
asp:Panel
ID
=
"panel01"
runat
=
"server"
>
<!--Form part 1 content here -->
<
asp:Button
ID
=
"ButtonNext01"
Text
=
"Button1"
ValidationGroup
=
"vgText"
CausesValidation
=
"True"
runat
=
"server"
OnClick
=
"OnClick_ButtonNext01"
/>
</
asp:Panel
>
<
asp:Panel
ID
=
"panel02"
runat
=
"server"
>
<!--Form part 2 content here -->
<
asp:Button
ID
=
"Buttonback02"
ValidationGroup
=
"vgText"
Text
=
"Button2"
CausesValidation
=
"True"
runat
=
"server"
OnClick
=
"OnClick_Buttonback02"
/>
<
asp:Button
ID
=
"ButtonSave"
ValidationGroup
=
"vgText"
Text
=
"Save and close window"
CausesValidation
=
"True"
runat
=
"server"
OnClick
=
"Save_form_content"
/>
</
asp:Panel
>
</
telerik:RadAjaxPanel
>
</
div
>
</
ContentTemplate
>
</
telerik:RadWindow
>
Code behind for Save and open window button:
Protected Sub ButtonAddNew_Click(sender As Object, e As EventArgs)
'open window
RadWindowImageEdit.VisibleOnPageLoad = True
End Sub
Protected Sub Save_form_content(sender As Object, e As EventArgs)
'code to insert form items in database
'close window
RadWindowImageEdit.VisibleOnPageLoad = False
End Sub