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

[Solved] Custumize calendar

4 Answers 182 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cemka
Top achievements
Rank 1
Cemka asked on 23 Feb 2011, 01:08 PM
Hello,

I have some "special days" in my database. I want to show a calendar, with a different style for those special days and when we clic a popup will show some informations.
Can I do this with telerik calendar ?
How ?
Using asp.net MVC calendar or as.net Ajax calendar ?

Edit : I can't use Ajax calendar :(

Thank's in advance.

P.S. Sorry for my english ...

4 Answers, 1 is accepted

Sort by
0
nachid
Top achievements
Rank 1
answered on 23 Feb 2011, 01:58 PM
Yes, you can achieve this with MVC Telerik calendar
You need to use client events and MVC Telerik Window
0
Cemka
Top achievements
Rank 1
answered on 23 Feb 2011, 07:08 PM
Do you have some samples ?
I have to use onLoad javascript function ?
How can I custumize "special days" on my calendar ?

Edit : I want the same thing : http://www.telerik.com/community/forums/aspnet-ajax/calendar/mvc-and-ondayrender.aspx#1493854
using Telerik Extensions for ASP.NET MVC

Thank's for your answer

Regards
Cemka
0
Shane
Top achievements
Rank 1
answered on 25 Mar 2011, 03:50 AM
Yet again.. I needed this as well so turned to jQuery for an answer:

function boldImportantDates() {
    $('.t-action-link').each(function () {
        $(this).css('font-weight', '700');
    });
}

Now, whatever I pass into the Dates collection in the select settings is bolded. E.g:

@(Html.Telerik().Calendar().Name("eventsCalendar")
     .HtmlAttributes(new { style = "width: 267px;" })
     .Selection(settings => settings
         .Action("Index", new { date = "{0}" })
         .Dates(Website.Models.DatabaseObjects.Homepage.EventItem.GetAllAsDateTime()))
     .ClientEvents(events => events
     .OnChange("onChange")))

Shane
0
ashes
Top achievements
Rank 1
answered on 12 Oct 2011, 07:30 AM
How can to use ClientEvents here ? Can you give me a code snippet ?
Tags
Calendar
Asked by
Cemka
Top achievements
Rank 1
Answers by
nachid
Top achievements
Rank 1
Cemka
Top achievements
Rank 1
Shane
Top achievements
Rank 1
ashes
Top achievements
Rank 1
Share this question
or