Hi,
Here’s the code:
<div>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" ShowContentDuringLoad="true" >
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Close,Minimize,Move,Resize,Maximize" Modal="true" Skin="Office2007" Title="NewPage" >
<ContentTemplate>
Here's the text for Modal window!
</ContentTemplate>
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<br />
<input type="button" value="click Here" onclick="openRadWindow();" />
<script type="text/javascript">
function openRadWindow() {
var rwManager = $find("<%= RadWindowManager1.ClientID %>");
var rwindow = rwManager.Open("", "RadWindow1");
rwindow.center();
return false;
}
</script>
</div>
I’m using $find() to grab the Window Manager as this section is in a user control and the container page also has a RadWindowManager.
When I click on the button, the RadWindow shows up including the title but - anything inside the Content template does not show in the window.
Am I missing something?
Also, I wonder if the content template is specific to Q3-2009 release as we haven’t updated to that version yet.
Any help pointer will be great appreciated.
10 Answers, 1 is accepted
Your code works as expected in my end. I am using RadControls version 2009, 3, 1314, 35. Can upgrade to latest version of RadControls and see whether it is working fine?
The following link will help you in upgrading to latest version:
Updating RadControls for ASP.NET to another version
Regards,
Shinu.
The content template feature was introduced in Q3 2009, so if you are using that version, you should not experience problems. I believe that the reason for such problem is in the exact setup that you have, but without having a better view over your logic, I cannot be sure. Please open a support ticket and send a small sample project that reproduces your setup and the problem itself - I will check it and get back to you right away.
Best wishes,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
My code is pretty much exactly the same as the other bloke's:
function OpenAddUserWindow() { |
var rwManager = $find("<%= WindowManager.ClientID %>"); |
var rwindow = rwManager.Open("", "<%=AddUserWindow.ClientID %>"); |
rwindow.center(); |
return false; |
} |
Any ideas?
Thanks!
The code looks OK so at this point I cannot tell what the reason for the problem might be. Could you please open a support ticket and send me a small sample project that reproduces this behavior? I will check it and get back to you right away.
Regards,
Georgi Tunev
the Telerik team
Thx
We didn't receive a project then, so I cannot tell what was the problem. I suggest to open a support ticket and send us a project that isolates the problem (this blog post might be of help in such task). We will check it right away.
Regards,
Georgi Tunev
the Telerik team
I have the similar problem. If it's just text content inside ContentTemplate, radWindow seems to assume that external content should be used, because it renders iframe. If I place some asp control inside ContentTemplate (asp:button for example), it works correctly.
The version I use is 2010.3.1109.35
Hello Eric,
I am not able to reproduce this behavior with your version (or with the latest). You can find my test page and a screenshot showing the rendered HTML attached.
Does this issue happen only under certain browsers or browser versions? If you upgrade to the latest version can you still reproduce it?
So far we have not been able to see this behavior, so please open a support ticket and send us a sample project that displays it so we can examine it on our end.
For the time being if the issue persists you could add, for example, a hidden field in the content template, or add the text as a literal control or label if this works for you. Please accept my apologies for any inconvenience caused.
Kind regards,
Marin
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
I'm having the same problem. I've pasted the code from your zip file onto my page and it creates an iframe not a div.
I cannot get any text or asp.net controls into the window.
I've tried using version 2010.3.1109.35 and 3.1105
Cheers,
Vicki
I've now got it working with a newer version of the dll.
Cheers!