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