Hello,
I have the follwoing code on my aspx page. When ommiting the line oWnd.show(); in the javascript function the Close button on the radwindow is not working. When I take out that line, everything else is working as expected. Is this problem by design or am I missing something? Can you elaborate on the difference between using and not using the oWnd.show(); ? Using 2009 Q1 release.
<telerik:RadCodeBlock> |
<script> |
function openWin() { |
var activiteitSettings = document.getElementById('<%=activeActiviteitType.ClientID %>').value; |
var oWnd = $find("<%=RadWindow1.ClientID%>"); |
var pos = GetTopLeftPosition(event.srcElement); |
dirty = 0; |
var d = Date.parseDate(document.getElementById('<%=infoArray.ClientID %>').value, "d-m-yy"); |
var voor = document.getElementById('<%=voor.ClientID %>').value; |
if (activiteitSettings == 0) |
oWnd.setUrl("PopForms/Pop_Activiteit_Edit.aspx?urenoid=" + event.srcElement.id + "&g=" + voor + "&maandag=" + d.getDate() + '-' + eval(d.getMonth() + 1) + '-' + d.getFullYear()); |
else if (activiteitSettings == 1) |
oWnd.setUrl("PopForms/Pop_Activiteit_Edit_Select.aspx?urenoid=" + event.srcElement.id + "&g=" + voor + "&maandag=" + d.getDate() + '-' + eval(d.getMonth() + 1) + '-' + d.getFullYear()); |
oWnd.show(); |
oWnd.moveTo(pos.x + parseInt(event.srcElement.clientWidth), pos.y); |
} |
</script> |
</telerik:RadCodeBlock> |
<telerik:RadWindow ID="RadWindow1" Skin="Vista" NavigateUrl="PopForms/Pop_Activiteit_Edit.aspx" KeepInScreenBounds="true" |
runat="server" Width="300px" Height="200px" ShowContentDuringLoad="false" VisibleTitlebar="true" VisibleStatusbar="false" |
Behaviors="Close, Move, Resize" > |
</telerik:RadWindow> |