I have to call a popup window using radopen. i did it a lot in the same project and it works fine also i did it in the same page and it works fine too but when i using radtoolbar something happens and the radopen doesn't fire and put # at the end of URL .
here's my code :
the last button should show a popup window using radopen. i used the javascript function calld clickhandler and here's the function :
and RadWindow Manager is :
be informed that the alert message welcome is appeared to me.
and when i replace radopen with window.open it opens a new window.
thanks in advance
here's my code :
<telerik:RadToolBar ID=
"GridToolBar"
OnClientButtonClicking=
"clickHandler"
dir=
"<%$ Resources: Main,Dir %>"
OnButtonClick=
"GridToolBar_OnClick"
runat=
"server"
Width=
"100%"
>
<Items>
<telerik:RadToolBarButton ToolTip=
"<%$ Resources: Main,ExportToExcel %>"
runat=
"server"
Value=
"Excel"
ImageUrl=
"<%$ Resources:Image, Excel%>"
>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton ToolTip=
"<%$ Resources: Main,ExportToExcelML %>"
runat=
"server"
Value=
"ExcelML"
ImageUrl=
"<%$ Resources:Image, ExcelML%>"
>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton ToolTip=
"<%$ Resources: Main,ExportToWord %>"
runat=
"server"
Value=
"Word"
ImageUrl=
"<%$ Resources:Image, Word%>"
>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton ToolTip=
"<%$ Resources: Main,ExportToCSV %>"
runat=
"server"
Value=
"CSV"
ImageUrl=
"<%$ Resources:Image, CSV%>"
>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton ToolTip=
"<%$ Resources: Main,ExportToPDF %>"
runat=
"server"
Value=
"PDF"
ImageUrl=
"<%$ Resources:Image, PDF%>"
>
</telerik:RadToolBarButton>
<telerik:RadToolBarButton ToolTip=
"<%$ Resources: Main,AddExistingUser %>"
CssClass=
"<%$ Resources: Main,ToolbarButtonAlignment %>"
runat=
"server"
Value=
"AddUser"
ImageUrl=
"<%$ Resources:Image, RegisterUser%>"
>
</telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>
the last button should show a popup window using radopen. i used the javascript function calld clickhandler and here's the function :
function
clickHandler(sender, eventArgs) {
if
(eventArgs.get_item().get_value() ==
"AddUser"
) {
alert("Welcome");
radopen(
"Page_Popup.aspx"
,
"RW"
);
return
false
;
}
}
and RadWindow Manager is :
<
telerik:RadWindowManager
ID
=
"RWM"
runat
=
"server"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"RW"
runat
=
"server"
Width
=
"600px"
Height
=
"330px"
Behaviors
=
"Close, Move, Minimize, Pin, Reload"
ShowContentDuringLoad
=
"false"
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
be informed that the alert message welcome is appeared to me.
and when i replace radopen with window.open it opens a new window.
thanks in advance