popup template problem

6 posts, 0 answers
  1. Ulrich Fiege
    Ulrich  Fiege avatar
    62 posts
    Member since:
    Sep 2005

    Posted 03 Feb 2009 Link to this post

    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>
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 03 Feb 2009 Link to this post

    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.
  3. German
    German  avatar
    26 posts
    Member since:
    Jun 2009

    Posted 05 Aug 2009 Link to this post

    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.
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 06 Aug 2009 Link to this post

    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.
  5. Oliver
    Oliver avatar
    1 posts
    Member since:
    Dec 2008

    Posted 24 Nov 2009 Link to this post

    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ß.
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 24 Nov 2009 Link to this post

    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.
Back to Top