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

Adding HTML Controls to Calendar

2 Answers 78 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
srikrishna sallam
Top achievements
Rank 1
srikrishna sallam asked on 21 Jul 2009, 09:01 PM
Hi I wanna know how we can add html controls like text box, checkbox, label, in the telerik calendar control and work around them 

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Jul 2009, 05:55 AM
Hi Srikrishna,

Checkout the following demo which describes how to include DayTemplates in RadCalendar.
Special Days and templates

Also refer the following documentation. Hope this would help you.
Day Templates

-Shinu.
0
srikrishna sallam
Top achievements
Rank 1
answered on 22 Jul 2009, 12:48 PM
Hi Shinu, thanks for the reply I have already tried that templates .. the problem is when I insert any control I am seeing only the control and the number for that particular date is missing

Say for ex:-  This is my code

 

 

<%

@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication2._Default" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

 

 

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head runat="server">

 

 

 

 

 

 

<title></title>

 

</

 

head>

 

<

 

body>

 

 

 

 

 

 

<form id="form1" runat="server">

 

 

 

 

 

 

<telerik:RadStyleSheetManager runat="server" OutputCompression="AutoDetect"></telerik:RadStyleSheetManager>

 

 

 

 

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server"  OutputCompression="AutoDetect"> </telerik:RadScriptManager> 

 

 


<
div>

 

 

 

 

 

 

<telerik:RadCalendar ID="RadCalendar1" runat="server" >

 

 

<CalendarDayTemplates>

 


<
telerik:DayTemplate ID="Anniversary" runat="server">

 

 

<Content> <asp:CheckBox ID="chk" runat="server" /> </Content>

 

 

</telerik:DayTemplate>

 

 

</CalendarDayTemplates>

 

 


<
SpecialDays>

 

 

<telerik:RadCalendarDay Date="2009-07-20" Repeatable="DayAndMonth"  ToolTip="Don't forget the anniversary"

 

 

TemplateID="Anniversary"> </telerik:RadCalendarDay>

 

 

</SpecialDays>

 

</

 

telerik:RadCalendar>

 

 


</
div>

 

 

 

 

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"></telerik:RadCodeBlock>

 

 

 

 

 

 

</form>

 

</

 

body>

 

</

 

html>

 

 

 

 

 

 
I tried to upload a screen shot of calendar image for better idea but i dint see any upload option you can check the result once you run this code and this might give you an  idea what i am trying to do and what i am getting with the above code...

Any insight is appreciated

Thanks,
Srikrishna.

 

Tags
Calendar
Asked by
srikrishna sallam
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
srikrishna sallam
Top achievements
Rank 1
Share this question
or