Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
asp:LinkButton
ID
=
"LinkButton1"
runat
"server"
type
"button"
Text
"[ Print Calendar ]"
OnClientClick
"PrintRadCalendar(); return false;"
Font-Underline
"false"
ForeColor
"Black"
/>
telerik:RadCalendar
"RadCalendar1"
Skin
"Simple"
MultiViewColumns
"2"
Style
"margin-left: auto; margin-right: auto"
MultiViewRows
>
</
<script type=
"text/javascript"
function
getOuterHTML(obj) {
if
(
typeof
(obj.outerHTML) ==
"undefined"
) {
var
divWrapper = document.createElement(
"div"
);
copyOb = obj.cloneNode(
true
divWrapper.appendChild(copyOb);
return
divWrapper.innerHTML
}
else
obj.outerHTML;
PrintRadCalendar() {
previewWnd = window.open(
'about:blank'
,
''
false
sh =
'<%= ClientScript.GetWebResourceUrl(RadCalendar1.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Calendar.{0}.css",RadCalendar1.Skin)) %>'
;
shBase =
'<%= ClientScript.GetWebResourceUrl(RadCalendar1.GetType(),"Telerik.Web.UI.Skins.Calendar.css") %>'
styleStr =
"<html><head><link href = '"
+ sh +
"' rel='stylesheet' type='text/css'></link>"
styleStr +=
"<link href = '"
+ shBase +
"' rel='stylesheet' type='text/css'></link></head>"
htmlcontent = styleStr +
"<body>"
+ getOuterHTML($find(
'<%= RadCalendar1.ClientID %>'
).get_element().parentNode) +
"</body></html>"
previewWnd.document.open();
previewWnd.document.write(htmlcontent);
previewWnd.document.close();
previewWnd.print();
previewWnd.close();
</script>