I Have A DocMenu qui travaille avec jquery ...Telerik RadWindows/Comment ouvrir RadWindows Telerik avec un DocMenu
l'un de ses article est comme ceci:
<a class="dock-item" href="#">
<img src="JQueryDocMenu/Images/1.png" alt="Test" /><span>Test</span></a>
J'utilise Telerik Rad Windiws pour pop Windows ...
quand je suis en utilisant un bouton ou quelque chose comme ça, si tout est ok pour la fenêtre pop ...
mais quand je me sers href de ce menu il est Il semble qu'il y ait un problème.
href dans cet article est comme ceci:
<a class="dock-item" href="javascript:OpenWindow();" title="Test">
<img src="JQueryDocMenu/Images/1.png" alt="Test" /><span></span></a>
la RadWindowManager et sa fenêtre est comme ceci:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" ReloadOnShow="True"
ShowContentDuringLoad="False" VisibleStatusbar="False" Behavior="Default" InitialBehavior="None"
EnableEmbeddedSkins="False" EnableEmbeddedBaseStylesheet="False" Skin="SunsetByMe"
Font-Names="Tahoma" Style="z-index: 8000;" DestroyOnClose="True">
<Windows>
<telerik:RadWindow ID="window1" runat="server"
Behavior="Close" NavigateUrl="~/a/window1.aspx"
OnClientClose="OnClientClose"
DestroyOnClose="True" Modal="True">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
et code javascript est comme ceci:
<script type="text/javascript">
function OpenWindow() {
Sys.Application.add_load(ow);
}
function ow() {
var oWnd = radopen(null, 'window1');
Sys.Application.remove_load(ow);
}
function OnClientClose(oWnd, args) {
}
</script>
l'événement onclick d'un bouton qui popup RadWindow (c'est ok) est comme ceci:
protected void Button1_Click1(object sender, EventArgs e)
{
Page.RegisterStartupScript("callWin", "<script type='text/javascript'>OpenWindow();</script>");
}
comment puis-je résoudre le problème?
merci à l'avance future
une maison de tout le corps? – LostLord