Wigging
asked on
telerik radwindow issue
Im trying to open a window through serverside code but it wont open....what am i missing?
If bladeDiscount > 0 Then
Dim window6 As New RadWindow()
window6.NavigateUrl = "http://www.google.com"
window6.VisibleOnPageLoad = True
window6.Width = 500
window6.Height = 300
Me.Controls.Add(window6)
Else
If Session("bladeDiscount") = "YES" Then
order.ResetDiscounts(strSi te)
Session("bladeDiscount") = ""
Dim message2 As String = "Sorry, the quantity of your blade order no longer qualifies for a discount."
ClientScript.RegisterStart upScript(M e.GetType, "jsMessage", "alert('" & message2 & "');", True)
End If
End If
If bladeDiscount > 0 Then
Dim window6 As New RadWindow()
window6.NavigateUrl = "http://www.google.com"
window6.VisibleOnPageLoad = True
window6.Width = 500
window6.Height = 300
Me.Controls.Add(window6)
Else
If Session("bladeDiscount") = "YES" Then
order.ResetDiscounts(strSi
Session("bladeDiscount") = ""
Dim message2 As String = "Sorry, the quantity of your blade order no longer qualifies for a discount."
ClientScript.RegisterStart
End If
End If
Is this done within an UpdatePanel? If so, make sure that the UpdatePanel is refreshing after the callback
ASKER
no i dont have updatepanel? do i have to add one?
No, you don't need to. You have to add the window you create to the RadWindowsManager.Windows collection. Do you have that on your page?
ASKER
yes, I have this...what else am i missing?
<telerik:RadWindowManager ID="RadWindowManager1"
ShowContentDuringLoad="Fal se"
AutoSize="True"
VisibleStatusbar="False"
ReloadOnShow="True"
runat="server"
Opacity="99"
BehaviorsAutoSize="true"
Skin="Sunset"
EnableShadow="True" >
<Windows>
<telerik:RadWindow ID="RadWindow2" runat="server" Behaviors="Close" OnClientClose="OnClientClo se"
NavigateUrl="DialogCS2.asp x">
</telerik:RadWindow>
<telerik:RadWindow ID="RadWindow6" runat="server" AutoSize="True"
EnableShadow="True" NavigateUrl="dialogalterna teitem.asp x" Opacity="99"
ReloadOnShow="True" ShowContentDuringLoad="Fal se" Skin="Sunset"
style="display:none;" VisibleStatusbar="False">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager >
<telerik:RadWindowManager ID="RadWindowManager1"
ShowContentDuringLoad="Fal
AutoSize="True"
VisibleStatusbar="False"
ReloadOnShow="True"
runat="server"
Opacity="99"
BehaviorsAutoSize="true"
Skin="Sunset"
EnableShadow="True" >
<Windows>
<telerik:RadWindow ID="RadWindow2" runat="server" Behaviors="Close" OnClientClose="OnClientClo
NavigateUrl="DialogCS2.asp
</telerik:RadWindow>
<telerik:RadWindow ID="RadWindow6" runat="server" AutoSize="True"
EnableShadow="True" NavigateUrl="dialogalterna
ReloadOnShow="True" ShowContentDuringLoad="Fal
style="display:none;" VisibleStatusbar="False">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager
If you have it on the ASPX side, it would be redudent to add it in the code-behind. Your style for the window is display:none which will hide it. Remove that style and set the visibility of the window in the code-behind. Let me get you an example.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.