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

Opening up links within radPane problem

7 Answers 61 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 2
Kevin asked on 24 Oct 2008, 03:54 PM
I dont know if this has been asked before. but i have a bit of a problem with the way things are working at the minute within the RadSplitter. We have a document management system. when a user opens up a document in our software, there is a radsplitter with 3 radPanes. (2 panes are wrapped in another splitter control which is part of the main splitter). content is loaded as ContentURL to the content pane which displays the document itself (where as the other two panes above are document details and buttons). the problem is some documents that are displayed within the Content Pane have links to other documents. so when they link to another page.. we have the problem splitters being held within the splitters. I realise this is because the links are opening into the IFrame that is created within the ContentPane. i'm just wondering if there is an easy way for anything thats in the contentURL to open in the same window but the whole window as opposed to within the contentPane iframe itself. If that makes any sense?

Code can be provided if required
Cheers
Regards
Kevin.

7 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 27 Oct 2008, 12:21 PM
Hello kevin,
I am not quite sure I understand your scenario, so in case I have misunderstood you, please send us a test project with detailed information on the expected result and we will do our best to help.

As far as I understand you, you have the following setup - a RadSplitter with a RadPane in which you open a document using the pane's ContentUrl. In the document you have links, pointing to other pages and you would like those other pages to open in the broser window instead of in the IFRAME of the RadPane. If this is the case, you should edit your links.

For example, use:
<onclick="javascript:window.top.location.href='Default3.aspx'; return false;" href="#">Default3</a> 

instead of:
<href="Default3.aspx">Default3</a> 

Greetings,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kevin
Top achievements
Rank 2
answered on 27 Oct 2008, 01:04 PM
Tsvetie,

Thanks for the quick response to my previous question.

This isnt quite what i require. you hit the nail on the head when it comes to how you want it to work. However i require that this be a default behaviour of links opening within the RadPane rather than having to set all the links to this, as this detracts from how generic our solution is.

Any help would be fantastic

Kindest Regards
Kevin Rhynas
0
Tsvetie
Telerik team
answered on 30 Oct 2008, 09:35 AM
Hi kevin,
I understand your point of view, but what you require is out of the scope of the RadSplitter control and that is why the control itself cannot offer such functionality. As you initially assumed - this behavior is handled by the IFRAME that the RadPane creates in order to open the documents, and as you can open any kind of link in the RadPane, there is not solution that would work in all cases as you expect. Basically, what you need is an event that fires before your document, opened in the RadPane, changes - in case you find such an event, you can use the same approach with window.top.location.href as the one I described in my previous post in order to redirect the whole page.

Regards,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kevin
Top achievements
Rank 2
answered on 04 Nov 2008, 08:59 AM
Tsvetie,

I have now implimented this fix, it appears to be working ok when i use the code you described, however for some reason when links are being clicked it is displaying the URL requested onscreen before it redirects? any reason for this that your aware of?
0
Tsvetie
Telerik team
answered on 04 Nov 2008, 02:02 PM
Hi kevin,
I am not quite sure I understand what the problem is. Could you please send us a video, demonstrating the behavior you describe?

Greetings,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kevin
Top achievements
Rank 2
answered on 04 Nov 2008, 02:39 PM
Tsvietie,

please find the following link http://www.youtube.com/v/XhNynRCJdLA that will take you to a youtube video of the problem i've been having, sorry for the youtube link but i couldnt find the way to upload a video onto the website

Kindest regards
Kevin.
0
Tsvetie
Telerik team
answered on 04 Nov 2008, 04:35 PM
Hello kevin,
Thank you for the video, I understand the problem now. Unfortunately, I have not seen such behavior until now and I am not sure what could have caused it. However, if you could send us a running test project, demonstrating it, we will do our best to help you fix the problem. In order to send us a project, you will have to open a new support ticket, as you cannot attach files in the forums.

Sincerely yours,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Splitter
Asked by
Kevin
Top achievements
Rank 2
Answers by
Tsvetie
Telerik team
Kevin
Top achievements
Rank 2
Share this question
or