rad window example

7 posts, 0 answers
  1. nagendra d
    nagendra d avatar
    17 posts
    Member since:
    Oct 2009

    Posted 16 Nov 2009 Link to this post

    Hi,

      I need an example project on rad window.
    senario :: On click of the button an rad dailog window should be opened ( which has 2 text boxs). entering the value in the 2 textboxs
    and on click of "ok" button the dailog box will be close. here i need that 2 textbox values in my parent form.

    I had used your below exmaple code, here i was getting null value at args.get_argument(); statement
     function openWin()
            {
                var oWnd = radopen("Dialog1.aspx", "RadWindow1");
            }
            
            function OnClientClose(oWnd,args)
            {
                //get the transferred arguments
                var arg = args.get_argument();
                if(arg)
                {
                    var cityName = arg.cityName;
                    var seldate = arg.selDate;
                    $get("order").innerHTML = "You chose to fly to <strong>" + cityName + "</strong> on <strong>" + seldate + "</strong>";
                }
            }
            //]]>
        </script>

        <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
            ReloadOnShow="true" runat="server" Skin="Sunset">
            <Windows>
                <telerik:RadWindow ID="RadWindow1" Behaviors="Close" OnClientClose="OnClientClose"
                    NavigateUrl="Dialog1.aspx">
                </telerik:RadWindow>
                <telerik:RadWindow ID="RadWindow2" Width="650" Height="445" Modal="true" NavigateUrl="Dialog2.aspx">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <div id="offsetElement" class="bigModule" style="height: 400px; padding: 8px;">
            <p>
                Click the button to open the Travel Planner form in a RadWindow.
            </p>
            <button onclick="openWin(); return false;">
                Choose Destination and date</button>
            <div id="order" class="orderText">
                <!---->
            </div>
            <br />
            <br />
        </div>

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 16 Nov 2009 Link to this post

    Hello nagendra d,

    Please paste the code for the dialog page as well - the code that you posted so far looks OK so the problem must be in the way you pass the values from the dialog.


    Kind 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.
  3. nagendra d
    nagendra d avatar
    17 posts
    Member since:
    Oct 2009

    Posted 16 Nov 2009 Link to this post

    Hi,

       I had just declared the textbox over there, I had not returned any thing from there.
    please send me the code for the "way you pass the values from the dialog.".
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 16 Nov 2009 Link to this post

    Hello Nagendra,

    Here's the link to the help document that you can refer to which provides a step by step procedure on how to create dialog windows and return values to the parent:
    Using RadWindow as a Dialog

    Hope this helps..
    Shinu.
  5. Silver
    Silver avatar
    9 posts
    Member since:
    Jul 2009

    Posted 16 Nov 2009 Link to this post

    Try the RadControlsExamples solution included with the install.
  6. Sreeram
    Sreeram avatar
    4 posts
    Member since:
    Nov 2016

    Posted 19 Dec 2016 in reply to Shinu Link to this post

    hi...shrinu i was unable to open the window please check my code ...
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3761 posts

    Posted 19 Dec 2016 Link to this post

    Hi Sreeram,

    The following blog post will show you how to attach client-side handlers to our controls: http://www.telerik.com/blogs/migrating-onclientclick-handlers-from-asp-button-to-telerik-s-asp-net-ajax-button.

    Regards,

    Marin Bratanov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top