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

popup template problem

5 Answers 498 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ulrich Fiege
Top achievements
Rank 1
Ulrich Fiege asked on 03 Feb 2009, 10:12 AM
hello,
we are using templates with radwindowmanager.
After update from version 1125 to 1314 we have radwindow problems.
The confirmation popup is shown correctly, after a button is pressed (cancel) we get a error message
(no sourcecode for this error available). In Version 1125 all works correctly.

Codesnippet:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" InitialBehavior="None" Modal="True">
        <ConfirmTemplate>
            <div class="windowpopup radconfirm">
                <div class="dialogtext">
                    {1}
                </div>
                <div>
                    <a onclick="$find('{0}').callBack(true);" class="radwindowbutton" href="javascript:void(0);">
                        <span class="outerspan"><span class="innerspan">##LOC[OK]##</span> </span></a>
                    <a onclick="$find('{0}').callBack(false);" class="radwindowbutton" href="javascript:void(0);">
                        <span class="outerspan"><span class="innerspan">##LOC[Cancel]##</span> </span>
                    </a>
                </div>
            </div>
        </ConfirmTemplate>
        <AlertTemplate>
            <div class="windowpopup radalert">
                <div class="dialogtext">
                    {1}
                </div>
                <div>
                    <a onclick="$find('{0}').close();" class="radwindowbutton" href="javascript:void(0);">
                        <span class="outerspan"><span class="innerspan">##LOC[OK]##</span> </span></a>
                </div>
            </div>
        </AlertTemplate>
    </telerik:RadWindowManager>

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 03 Feb 2009, 11:58 AM
Hi Ulrich,

There were changes in the radalert/radprompt/radconfirm implementations needed to bring the popups behavior closer to their browser's counterparts. In particular, the popups were reworked in such a way that the callback function is always called - regardless whether the user pushed OK, Cancel or the [x] button on the top of the window (this did not work before).

To get this thing working, the callBack method had to be eliminated, and the correct way to go is to use close, e.g.
$find('{0}').close('add')
Changing this should make things work as they used to.
Let us know if you encounter any problems.


Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
German
Top achievements
Rank 1
answered on 05 Aug 2009, 08:18 PM
Ulrich,
I was wondering if you could please take a look at my thread.
It's important and would really appreciate it if you could respond
to it at your earliest convenience. Thread: Radcontrol inside a RadWindow.
 Thank you so much.
0
Georgi Tunev
Telerik team
answered on 06 Aug 2009, 06:41 AM
Hello German ,

I just answered your forum post. For convenience I am pasting my reply below:

Currently RadWindow can only load an external page as it is the main idea behind the control. We consider to improve that and to redesign the control so it would allow using templates, however this will happen in the future - most probably at the end of the year.
For the time being, in scenarios like yours, we suggest to consider RadToolTIp or RadDock.



Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Oliver
Top achievements
Rank 1
answered on 24 Nov 2009, 09:43 AM
Hello,

i know there are template definitions for the confirm, alert, splash and prompt dialog. Is it possible to define a additional template for a custom dialog window?

Kind regards,
Oliver MroƟ.
0
Georgi Tunev
Telerik team
answered on 24 Nov 2009, 12:19 PM
Hello Oliver,

I am afraid that this is not possible. What you can do is to prepare a content page that looks like a popup dialog and to open it inside a RadWindow. More information on the subject is available in this help article:
http://www.telerik.com/help/aspnet-ajax/window_programmingusingradwindowasadialog.html


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Ulrich Fiege
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
German
Top achievements
Rank 1
Oliver
Top achievements
Rank 1
Share this question
or