Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Window > popup template problem

Not answered popup template problem

Feed from this thread
  • Ulrich Fiege avatar

    Posted on Feb 3, 2009 (permalink)

    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>

    Reply

  • Georgi Tunev Georgi Tunev admin's avatar

    Posted on Feb 3, 2009 (permalink)

    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.

    Reply

  • German avatar

    Posted on Aug 5, 2009 (permalink)

    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.

    Reply

  • Georgi Tunev Georgi Tunev admin's avatar

    Posted on Aug 6, 2009 (permalink)

    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.

    Reply

  • Oliver avatar

    Posted on Nov 24, 2009 (permalink)

    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ß.

    Reply

  • Georgi Tunev Georgi Tunev admin's avatar

    Posted on Nov 24, 2009 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Window > popup template problem
Related resources for "popup template problem"

ASP.NET Window Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]