Hello,
I have a RadWindowManager on my page and a linkbutton popping open the window. The code is set properly and it works the first time you click the link but if you close the modal and try to click the link again it gives a javascript error of "Object doesn't support this property or method". My example is below.
I have a RadWindowManager on my page and a linkbutton popping open the window. The code is set properly and it works the first time you click the link but if you close the modal and try to click the link again it gives a javascript error of "Object doesn't support this property or method". My example is below.
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"> |
<Windows> |
<telerik:RadWindow ID="AddPersonnel" runat="server" Title="Create New Personnel" Height="375px" Width="625px" ReloadOnShow="true" Modal="true" OnClientClose="refresh" Behavior="Close, Reload" /> |
</Windows> |
</telerik:RadWindowManager> |
<script type="text/javascript"> |
function AddPersonnel() { |
window.radopen("/Portal/Modal/AddPersonnel.aspx", "AddPersonnel"); |
return false; |
} |
</script> |
this.lnkCreatePersonnel.Attributes.Add("href", "#"); |
this.lnkCreatePersonnel.Attributes.Add("onclick", "return AddPersonnel();"); |
I have also tried it using the following:
<a href="#" onclick="AddPersonnel();">Create Personnel</a>
I can't seem to fix this issue and I've tried multiple. Help would be much appreciated.
thanks,
Chad