Posted 20 Dec 2010 Link to this post
Posted 21 Dec 2010 Link to this post
<
script
type
=
"text/javascript"
>
var DayCell;
function OnDateClick(sender, args)
{
DayCell = args.get_renderDay().DomElement;
}
function OnClientClose(sender, args)
// get the text passed from window
DayCell.innerText = "hi"; // set the day cell text
</
Posted 22 Dec 2010 Link to this post
telerik:RadWindowManager
ID
"IntdRadWindowManager"
DestroyOnClose
"false"
runat
"server"
AutoSize
"true"
OnClientClose
"OnClientClose"
Windows
telerik:RadWindow
"RadWindow1"
NavigateUrl
"window.aspx"
telerik:RadCalendar
"RadCalendar1"
ClientEvents
OnDateClick
"OnDateClick"
/>
function OnDateClick(sender, args) {
DayCell = args.get_renderDay().DomElement; // save the day-cell client object
var radWin = window.radopen("", "RadWindow1"); // open window
function OnClientClose(sender, args) {
if (args.get_argument() != null) {
DayCell.innerText = args.get_argument(); // setting day-cell text
body
form
id
"form1"
div
asp:TextBox
"TextBox1"
></
input
"Button1"
"button"
value
onclick
"closeWin();"
html
function closeWin() {
var oWnd = GetRadWindow();
var textInput = document.getElementById("TextBox1");
oWnd.close(textInput.value); // pass the value to main page
function GetRadWindow() {
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
Posted 23 Dec 2010 Link to this post
AutoPostBack
Posted 24 Dec 2010 Link to this post
Posted 25 Dec 2010 Link to this post
Posted 26 Dec 2010 Link to this post
Hi Shinu, Thank you so much it works, but one moew favour i need to display two more integer values in the particular date. ex: If i click on the particular date, popup window is opening in that need to enter 3 integer values, with the alphabets.. like V=2 , S=1, O=0.. one by one order vertically.. Tell me how to do this.? and how to save those values in the database..from the main page
Posted 27 Dec 2010 Link to this post
Posted 28 Dec 2010 Link to this post
function
closeWin() {
var
oWnd = GetRadWindow();
textInput1 = document.getElementById(
);
textInput2 = document.getElementById(
"TextBox2"
textInput3 = document.getElementById(
"TextBox3"
value =
new
Object();
// Create new Object
value.arg1 = textInput1.value;
value.arg2 = textInput2.value;
value.arg3 = textInput3.value;
oWnd.close(value);
// Close window and pass the values
OnClientClose(sender, args) {
if
(args.get_argument() !=
null
) {
value = args.get_argument().arg1 +
"<br />"
+ args.get_argument().arg2 +
" <br />"
+ args.get_argument().arg3;
DayCell.innerHTML = value;
Posted 01 Jan 2011 Link to this post
Posted 03 Jan 2011 Link to this post
Posted 12 Jan 2011 Link to this post