Opening a telerik radwindow from a radgrid or radlistview

I would like to open a radwindow from a button in a radlistview using javascript

So far this is what I have done, I have a form (default.aspx) with a radlistview and a javascript function, and another form (fileUpload.aspx) to be opened from the radwindow.
Both are in the root of the application.

However I cannot manage to open the window.

Thank you for your help.

This is the default form:
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TESTING._Default" %>

<%@ Register tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"%>

    <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadListView ID="LV" runat="server"  OnNeedDataSource="LV_NeedDataSource" >
            <fieldset style="border: none;" >
                <table cellpadding="0" cellspacing="0"   >
                            <asp:TextBox ID="MCTxtBox" runat="Server" Text='<%# Eval("MCDesc") %>' onblur="ShowForm(this)"  />
                            <telerik:RadButton ID="btnUpload" runat="Server" onclientclicked="ShowForm()"/>

    <script type="text/javascript">
        function ShowForm() {
          window.radopen("FileUpload.aspx", "UserDialog");

Open in new window

And this is the form to open in the radwindow:

<%@ Page Title="File Upload" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FileUpload.aspx.cs" Inherits="TESTING.FileUpload" %>

<%@ Register tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"%>

    <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
        <div style="padding: 10px; text-align: center;">
            <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" MultipleFileSelection="Automatic" />

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle AbrahamsSenior .Net DeveloperCommented:
You're missing the radwindowmanager in the main page as far as I can tell.

And I'm pretty sure you just pass the name of the function in telerik.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AnneSKSAuthor Commented:
Thanks for your answer,
I have added a RadWindowManager, and remove the () in the OnClientClicked. which is an improvement, but now when I click on the button, I can see the window opening, however it fades away straight away.

Kyle AbrahamsSenior .Net DeveloperCommented:
Are you calling a window.close() in the sub file?  If you set a break point in the page load are you getting that at least?  Also are you ajaxing the page at all or is that the full markup?

More on radwindow here:
AnneSKSAuthor Commented:
Hi, I had to remove the postback and then it worked.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.