Hi,
I have my code shown like below:
Where filter is a custom multiselect dropdown control.
When a user clicks on refresh button a custom panel with a grid/RadDock is added to the RadDockZone, this grid has a button which opens a popup using javascript given below:
Everything works fine until Export to Excel is clicked. Once its clicked the popup is not shown I can see only alert displaying the url. But I'm able to click on refresh button and Add Panel button which opens same popup fine from server-side. I tried adding PorstBackTrigger to UpdatePanel but it didnt work. Can you please help me find whats wrong with the code?
I have my code shown like below:
<
telerik:RadScriptManager ID="RadScriptManager" runat="server">
</telerik:RadScriptManager>
<radW:RadWindowManager ID="RadWindowManagerDefineView" runat="server" RadControlsDir="~/Includes/RadControls"
Skin="Office2007" ClientCallBackFunction="CallBackFunction">
<Windows>
<radW:RadWindow ID="RadWindowDefineView" ReloadOnShow="true" Top="5px" Modal="true"
Behavior="Close" runat="server" NavigateUrl="ModifyFilters.aspx"
RadControlsDir="~/Includes/RadControls" Width="560px" Height="582px"></radW:RadWindow>
</Windows>
</radW:RadWindowManager>
<
asp:UpdatePanel
ID
=
"testPanel"
runat
=
"server"
>
<
ContentTemplate
>
<
div
id
=
"divHeader"
>
<
center
>
<
table
style
=
"width: 95%"
>
<
tr
>
<
td
>
Age:
</
td
>
<
td
>
<
cc2:Filter
ID
=
"msAccountWasAge"
runat
=
"server"
ListSize
=
"8"
PromptClass
=
"FilterLabel"
ImageClass
=
"MSDDImg"
ImagePath
=
"../../Images/pullDown.JPG"
ListBoxClass
=
"MSDDListBox"
TextBoxClass
=
"MSDDTextBox"
ZIndex
=
"300"
/>
</
td
>
<
td
>
Country:
</
td
>
<
td
>
<
cc2:Filter
ID
=
"msCountry"
runat
=
"server"
ListSize
=
"9"
PromptClass
=
"FilterLabel"
ImageClass
=
"MSDDImg"
ImagePath
=
"../../Images/pullDown.JPG"
ListBoxClass
=
"MSDDListBoxCompare"
TextBoxClass
=
"MSDDTextBoxCompare"
ZIndex
=
"300"
/>
</
td
>
<
td
>
<
asp:ImageButton
ID
=
"ImageButtonRefresh"
Height
=
"25px"
Style
=
"float: left"
OnClientClick
=
"displayWaitAndSetPanel();"
Width
=
"25px"
runat
=
"server"
ImageUrl
=
"../../Images/Refresh.png"
/>
<
asp:ImageButton
ID
=
"ImageButtonExportExcel"
runat
=
"server"
Height
=
"25px"
Width
=
"25px"
ImageAlign
=
"Left"
ImageUrl
=
"../../Images/excel.jpg"
Style
=
"float: left"
AlternateText
=
"Export to Excel"
>
</
asp:ImageButton
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"6"
>
</
td
>
</
tr
>
</
table
>
</
center
>
</
div
></
ContentTemplate
>
</
asp:UpdatePanel
>
<
asp:Button
ID
=
"btnAddPanel"
runat
=
"server"
CssClass
=
"btnSmall"
Text
=
"Add Panel"
/>
<
asp:Label
ID
=
"lblShowWarning"
runat
=
"server"
Visible
=
"false"
ForeColor
=
"Red"
></
asp:Label
>
<
asp:Panel
ID
=
"pnlLayout"
runat
=
"server"
Width
=
"100%"
Height
=
"400px"
>
<
telerik:RadDockLayout
ID
=
"RadDockLayout"
runat
=
"server"
Skin
=
"Office2007"
StoreLayoutInViewState
=
"true"
>
<
telerik:RadDockZone
ID
=
"RadDockZone"
Width
=
"400px"
Height
=
"200px"
MinWidth
=
"800px"
runat
=
"server"
Orientation
=
"Horizontal"
>
</
telerik:RadDockZone
>
</
telerik:RadDockLayout
>
</
asp:Panel
>
Where filter is a custom multiselect dropdown control.
When a user clicks on refresh button a custom panel with a grid/RadDock is added to the RadDockZone, this grid has a button which opens a popup using javascript given below:
function ShowModifyFilters(ID) {
var oManager = GetRadWindowManager();
var oWnd = oManager.GetWindowByName("RadWindowDefineView");
oWnd.argument = ID;
if (WindowUrl == null)
WindowUrl = oWnd.GetUrl();
oWnd.SetUrl(WindowUrl + "?SavedPanelID=" + ID);
oWnd.Show();
alert(WindowUrl + "?SavedPanelID=" + ID);
}
Everything works fine until Export to Excel is clicked. Once its clicked the popup is not shown I can see only alert displaying the url. But I'm able to click on refresh button and Add Panel button which opens same popup fine from server-side. I tried adding PorstBackTrigger to UpdatePanel but it didnt work. Can you please help me find whats wrong with the code?