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

Radopen path

8 Answers 173 Views
Window
This is a migrated thread and some comments may be shown as answers.
Eugene
Top achievements
Rank 1
Eugene asked on 31 Mar 2010, 10:57 PM
Greetings,
    The Radopen function does not seem to work with relative paths, so for now I have been moving the views to the root directory.  is there a way to use relative paths with the Radopen function?  For example, the path ../View/Account/login.aspx does not work.  It appears that the leading periods are stripped off of the path.

Thanks in advance,
Eugene

8 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 01 Apr 2010, 09:42 AM
Hi Eugene,

I tried to reproduce the problem

function openWin()
{
    var oWnd = radopen("../View/Account/login.aspx", null);
}

but as you can see from the attached movie, everything worked as expected. I would suggest to open a support ticket and to send a small sample where this issue could be reproduced so we could check it locally.

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.
0
Eugene
Top achievements
Rank 1
answered on 01 Apr 2010, 05:37 PM
Hello Georgi,
    After viewing your avi file, I wonder if this problem has something to do with running on a web server as opposed to running on a local machine.  My page is located at C:\Users\sfink\Documents\Visual Studio 2008\Projects\KMS_MVC\KMS_MVC\Views\Account\Login.aspx and I am attempting to access it with ../Views/Account/Login.aspx using radopen.  In your movie, the path appears to start with http:/localhost...

Sincerely,
Eugene
0
Georgi Tunev
Telerik team
answered on 06 Apr 2010, 12:57 PM
Hello Eugene,

If you don't have some custom Url rewriter on your site, this (running on webserver or locally) should not be a reason for such problem. I would suggest to replace the RadWindow with a standard popup (window.open()) and to make sure that the page is opened correctly. Once you have your logic working as expected with a browser's popup, the same logic will work with RadWindow as well.
If you still experience problems, please open a support ticket and send a full sample project where this issue could be reproduced. I will check it 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.
0
Eugene
Top achievements
Rank 1
answered on 09 Apr 2010, 03:08 PM
Hello Georgi,
    Could you please send me a small sample mvc app with a working radopen function call.  The movie does not help me.
Thanks,
Eugene
0
Georgi Tunev
Telerik team
answered on 12 Apr 2010, 08:47 AM
Hi Eugene,

Thank you for the additional details - now I see that we are talking about an MVC site (I should have noticed that in the path that you provided 2 replies ago - sorry about that).
In MVC the pages (aspx files) are not opened directly, they are View components and are accessed in a different way.
For convenience I attached a small sample MVC app to this thread where I open a RadWindow in the context of the Index view and display a testlogin view in Account. Note the changes in the AccountController.cs file (marked with TELERIK comments) and the code in the radopen() function in Views\Home\Index.aspx.

Kind regards,
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.
0
Eugene
Top achievements
Rank 1
answered on 12 Apr 2010, 07:20 PM
Hello Georgi,
    Thank you for your prompt reply.  Now, do you have any idea why my login window frame appears with nothing inside of the window?  In other words, the result is a blank window with a frame and title, but the inside is just the white background.  The window appears correctly when opening it with window.open.  I can get a window to open correctly in another small program like your sample, but unfortunately cannot get it to work in my actual application.  Here is my code:

My Account controller:

 

public ActionResult Login()

 

{

 

return View("testlogin");

 

}

In my SiteMaster:
<button onclick="radopen('<%= Url.Action("Login", "Account") %>', 'RadWindow1'); return false;">Login</button>

 


 My testlogin.aspx file:

<%

@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head id="Head1" runat="server">

 

 

<title>Login Testing!123</title>

 

</

 

head>

 

<

 

body>

 

 

<h1>My MVC Application</h1>

 

 

<telerik:RadScriptManager id="RadScriptManager1" runat="server"></telerik:RadScriptManager>

 

</

 

body>

 

</

 

html>

Hoping that you have the answer,
Sincerely,
Eugene

 

0
Georgi Tunev
Telerik team
answered on 15 Apr 2010, 01:38 PM
Hello Eugene,

Your code looks OK and I am afraid that at this point I cannot tell what the reason for the problem might be. Please try to isolate the case in which this behavior occurs and send it to me in a support ticket so I could check it more closely.


All the best,
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.
0
Eugene
Top achievements
Rank 1
answered on 15 Apr 2010, 10:19 PM
Hello Georgi,
    I am very sorry but I found out today that the problem seems to be related to the main CSS file in the application.  When that file was removed from the app, the window appeared in the expected normal state.  So you could forget about this issue and consider it done. 

Thanks,
Eugene
Tags
Window
Asked by
Eugene
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Eugene
Top achievements
Rank 1
Share this question
or