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

rad window example

6 Answers 170 Views
Window
This is a migrated thread and some comments may be shown as answers.
nagendra d
Top achievements
Rank 1
nagendra d asked on 16 Nov 2009, 11:30 AM
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>

6 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 16 Nov 2009, 11:52 AM
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.
0
nagendra d
Top achievements
Rank 1
answered on 16 Nov 2009, 11:59 AM
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.".
0
Shinu
Top achievements
Rank 2
answered on 16 Nov 2009, 12:45 PM
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.
0
Silver
Top achievements
Rank 1
answered on 16 Nov 2009, 03:23 PM
Try the RadControlsExamples solution included with the install.
0
Sreeram
Top achievements
Rank 1
answered on 19 Dec 2016, 12:59 PM
hi...shrinu i was unable to open the window please check my code ...
0
Marin Bratanov
Telerik team
answered on 19 Dec 2016, 01:37 PM

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.
Tags
Window
Asked by
nagendra d
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
nagendra d
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Silver
Top achievements
Rank 1
Sreeram
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or