Hi,
I am using the RadCalendar in my webpage. While clicking on the particular date i did open the radwindow in that window i am having 3 textboxes , after entering the values in that, need to display on the particular date of that Calendar page...Now i am able to display one value ,,but how to do another two values. Tell me how to do?
I am using the RadCalendar in my webpage. While clicking on the particular date i did open the radwindow in that window i am having 3 textboxes , after entering the values in that, need to display on the particular date of that Calendar page...Now i am able to display one value ,,but how to do another two values. Tell me how to do?
5 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 28 Dec 2010, 07:46 AM
Hello Brown,
Pass the values to main page as parameter object and set the day cell text from client side in OnClientClose method of window.
Sample code you can find here:
Main page:
And in window page:
-Shinu.
Pass the values to main page as parameter object and set the day cell text from client side in OnClientClose method of window.
Sample code you can find here:
Main page:
<script type="text/javascript"> var DayCell; function OnDateClick(sender, args) { // attach to RadCalendar "OnDateClick" DayCell = args.get_renderDay().DomElement; var radWin = window.radopen("", "RadWindow1"); // Opening window } function OnClientClose(sender, args) { // For setting the daycell text according to passed parameter if (args.get_argument() != null) { var value = args.get_argument().arg1 + "<br />" + args.get_argument().arg2 + " <br />" + args.get_argument().arg3; DayCell.innerHTML = value; // Set DayCell text } } </script>And in window page:
<script type="text/javascript"> function closeWin() { var oWnd = GetRadWindow(); var textInput1 = document.getElementById("TextBox1"); var textInput2 = document.getElementById("TextBox2"); var textInput3 = document.getElementById("TextBox3"); var value = new Object(); value.arg1 = textInput1.value; value.arg2 = textInput2.value; value.arg3 = textInput3.value; oWnd.close(value); } function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; return oWindow; } </script>-Shinu.
0
Brown
Top achievements
Rank 1
answered on 28 Dec 2010, 08:12 PM
Hi shinu,
It works, but need to expand the cell size to display those values vertically...... Is it possible to define cellpadding and cellspacing? Tell me how to do?
1. Need to display those values vertically
2. Need to expand the calendar cell size..
It works, but need to expand the cell size to display those values vertically...... Is it possible to define cellpadding and cellspacing? Tell me how to do?
1. Need to display those values vertically
2. Need to expand the calendar cell size..
0
Hi Brown,
Please refer to the following resouces:
http://www.telerik.com/help/aspnet-ajax/calendar_appearanceunderstandingtheskincssfile.html
http://www.telerik.com/help/aspnet-ajax/calendar_appearancecssskinfileselectors.html
http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx
I hope this helps
Best wishes,
Maria Ilieva
the Telerik team
Please refer to the following resouces:
http://www.telerik.com/help/aspnet-ajax/calendar_appearanceunderstandingtheskincssfile.html
http://www.telerik.com/help/aspnet-ajax/calendar_appearancecssskinfileselectors.html
http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx
I hope this helps
Best wishes,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Hi Brown,
Please refer to the following resouces:
http://www.telerik.com/help/aspnet-ajax/calendar_appearanceunderstandingtheskincssfile.html
http://www.telerik.com/help/aspnet-ajax/calendar_appearancecssskinfileselectors.html
http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx
I hope this helps
Best wishes,
Maria Ilieva
the Telerik team
Please refer to the following resouces:
http://www.telerik.com/help/aspnet-ajax/calendar_appearanceunderstandingtheskincssfile.html
http://www.telerik.com/help/aspnet-ajax/calendar_appearancecssskinfileselectors.html
http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx
I hope this helps
Best wishes,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Brown
Top achievements
Rank 1
answered on 03 Jan 2011, 03:29 PM
Thanks