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

Behavior hyperlinks when scheduler is opened in a modal window

4 Answers 111 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 05 Aug 2008, 10:29 AM
Hello Telerik Community,

I wrote a page using the scheduler control. All worked fine during developement in a normal bower window.  Now I have a requirement to call this page in a modal window.  A click on a hyperlink that is part of the scheduler control has the behavior of opening in a new window.  Once in this new window hyperlink behavior is back to normal.

Is there a way to set the target attribute of all the hyperlinks of the scheduler control to '_self' or is there another workaround that solves the hyperlink behavior when working in a modal window.

I'm using the latest release of the radcontrols.

Thanks for any feedback.

Mark

4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 05 Aug 2008, 10:49 AM
Hi Mark,

I assume that you are talking about links that are part of the appointment template. If this is the case, then you can handle the AppointmentCreated event and use FindControl to find and alter the hyperlinks. Another option is to use JavaScript to alter them on the client. We can provide you with more specific instructions if you can give us some more details about your implementation.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 1
answered on 05 Aug 2008, 11:00 AM
Are the hyperlinks for week-view;month-view;timeline-view;show24hours-view;nextday;prevday part of the appointment template?
0
Accepted
T. Tsonev
Telerik team
answered on 07 Aug 2008, 10:40 AM
Hi Mark,

This is a known issue with the showModalDialog method. You can resolve it by setting the target of all links to "_self" by using a "base" tag:

<head runat="server"
    <title>Untitled Page</title> 
    <base target="_self" /> 
</head> 


All the best,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 1
answered on 07 Aug 2008, 05:30 PM
Thank you Tsvetomir Tsonev you have been a great help, your suggestion was the solution :)

Cheers,

Mark
Tags
Scheduler
Asked by
Mark
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Mark
Top achievements
Rank 1
Share this question
or