This is a migrated thread and some comments may be shown as answers.

Problems displaying an aspx page in a RadWindow

4 Answers 155 Views
Window
This is a migrated thread and some comments may be shown as answers.
newguy
Top achievements
Rank 1
newguy asked on 18 Jun 2013, 12:17 PM
Hi Guys,

I am trying to display an aspx page in a radWindow. I can get the webPage to load in the RadWindow but it only shows me CheckBoxes and none of my buttons.

I have tried many ways of trying to get this to display correctly but have failed everytime. my last attempt just loads a blank RadWindow,its probably a simple fix could someone please help me out.

Here is my aspx page i need loaded into my RadWindow


<body id="SendNotifications">
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
        <StyleSheets>
            <telerik:StyleSheetReference Path="~/Styles/Site.css" />
            <telerik:StyleSheetReference Path="~/App_Themes/Skins.skin" />
        </StyleSheets>
    </telerik:RadStyleSheetManager>
  
    <form id="form1" runat="server">
    <div class="oops">
  
        <asp:ScriptManager ID="notifyScriptManager" runat="server" />
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2010Silver" DecoratedControls="All" />
  
        <asp:FormView ID="NotificationForm" runat="server" Width="100%" Height="300px" >
            <EditItemTemplate>
                 
<table class="IncDetails">
                    <tr>
                        <td>
                            <asp:CheckBox runat="server" ID="chkIncLogger" Checked="false" Text="Notify Incident Logger" />
                        </td>
                        <td>
                            <asp:CheckBox runat="server" ID="chkIncAssignee" Checked="true" Text="Notify Current Assignee" Enabled="false" />
                         </td>
                         <td>
                            <asp:CheckBox runat="server" ID="chkNotifyManager" Checked="false"  Text="Notify Notify Manager" />
                        </td>
                        <td>
                            <asp:CheckBox runat="server" ID="chkIncDistList" Checked="false"  Text="Notify Distribution List " />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:CheckBox runat="server" ID="chkIncCreator" Checked="false" Text="Notify Incident Creator" />
                        </td>
                        <td>
                            <asp:CheckBox runat="server" ID="chkIncOrigAssignee" Checked="false" Text="Notify Original Assignee" Enabled="false" />
                         </td>
                         <td>
                            <asp:CheckBox runat="server" ID="chkIncConsumer" Checked="false" Text="Notify Consumer" Enabled="false" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnSave" runat="server" Text="Save" />
                           </td>
                            <td>
                            <asp:Button ID="btnClose" runat="server" Text="Close" />
                        </td>
                    </tr>
                </table>
            </EditItemTemplate>
        </asp:FormView>
    </div>
    </form>
</body>
</html>


As you can see this is very short, All that i need is when a user clicks on a button the RadWindow will appear and display the following CheckBoxes and Buttons inside of the rad window.

Here is the javascript i am using to call the RadWindow

function ShowNotificationForm() {
                window.radopen("/Inc/Notifications.aspx", "NotifyDialog");
                return false;
            }

And here is the RadWindowManager from the Page it is being called from

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
<telerik:RadWindow ID="NotifyDialog" runat="server" ReloadOnShow="true" ShowContentDuringLoad="false"    Modal="true"    Width="900px" Height="760px">
</telerik:RadWindow>
</Windows>

This does not give me any errors the RadWindows is displayed But without any Controls.

Thank you  in advance

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Jun 2013, 01:22 PM
Hi,

Try to set the DefaultMode as "Edit" and also set the DataSource in FormView.
ASPX:
<asp:FormView ID="NotificationForm" runat="server" Width="100%" Height="300px" DefaultMode="Edit" DataSourceID="SqlDataSource1" >
<EditItemTemplate>
... ... ...
</EditItemTemplate>
</asp:FormView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT * FROM [tableName]"></asp:SqlDataSource>

Here I attached the screenshot I got.

Thanks,
Shinu.
0
newguy
Top achievements
Rank 1
answered on 18 Jun 2013, 01:45 PM
Sorry im not getting that result, my rad window still shows up blank.

The only thing you changed was the defaultmode?
0
newguy
Top achievements
Rank 1
answered on 18 Jun 2013, 01:57 PM
And do i even have to use a form view?,

If i dont use the formview, i can get the checkboxes to display but then the buttons wont display.
0
Danail Vasilev
Telerik team
answered on 21 Jun 2013, 12:23 PM
Hello John,

Note that the ASP FormView control is a databound control, so that it requires to be databound. You can have a look at the example that Shinu provided as well as to this online demo which demonstrates using a databound FromView.

You can use RadWindow to you build customized dialog boxes and modal or non-modal windows for a web application. The content of the RadWindow is not limited and you are not obliged to use FormView. Actually the content of the RadWindow depends entirely on the developers' requirements and needs.

Regarding your issue with the displaying of the buttons on the RadWinow, I have tried to reproduce this issue but to no avail. You can find a short video with the test in the attached archive and then tell me what I am missing.

It may be possible that you there is some global CSS that affects the proper appearance of the styled buttons. If that is the case I can suggest you to examine this help article. Otherwise you can try to reproduce the issue with the attached example and then tell us what changes you have made, so that we can make a research locally.

You can also find useful RadWindow's online demos and documentation.


Regards,
Danail Vasilev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Window
Asked by
newguy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
newguy
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or