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

Calendar Month Formatting

1 Answer 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 30 Jan 2009, 07:22 AM
 

Hello,

Is that possible in the calender that when we select the muliple date in a month then in the calender control Header should show the Date Start  to Date End?
Example -:
Suppose i have Select the date from 26 Jan to 31 jan then in the Header it Should show the
 Jan,26th - Jan,31st
 just above the month.

Thanks and regards
Manoj

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Jan 2009, 08:20 AM
Hello Manoj,

To display custom text in the Header, you can place labels in the headertemplate of the calendar and set the required dates as the label text.
aspx:
   <telerik:RadCalendar ID="RadCalendar1"  runat="server" Font-Names="Arial, Verdana, Tahoma" 
          ForeColor="Black" Style="border-color: #ececec">         
           <HeaderTemplate> 
              <asp:Label ID="Label2" runat="server" Text="Jan,26th"></asp:Label> - 
              <asp:Label ID="Label3" runat="server" Text="Jan,31st"></asp:Label>             
          </HeaderTemplate> 
      </telerik:RadCalendar> 

To display a custom text in the Title of the calendar, you can try ut the following:
js:
 document.getElementById("RadCalendar1_Title").innerHTML =  "CustomText";   

Thanks
Princy.
Tags
Grid
Asked by
Manoj
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or