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

MVC and OnDayRender

4 Answers 100 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 19 Jan 2011, 03:39 PM
Hello there,

I'm currently evaluation this calendar and am not sure if it really does what I need (though I'm quite positive).

I want, in MVC, to provide some data, that changes how the days of a month are display (and if possible even restrict from select specific dates).
How would I go to implement that? In general ASP.Net I would, perhaps, subscribe to the event, but this isn't possible in MVC.

Basically, that Data I am going to provide is a little bool[]. True meaning the day should paint with a greenish background and be selectable, while false gets a reddish background and shouldn't be selectable.
At the same time, when selecting a date, I want to let the website display something that is associated with that date... Say, for making an appointment with a physician.. it then displays a list of possible appointment, or something like this.

How would I go about to implement this in MVC? (Sorry, if it might seem to be a stupid question, I'm more of a conventional C# programmer than Web-Programmer)

Thank you very much in advance,

Greetings

Alex Endris

4 Answers, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 19 Jan 2011, 07:48 PM
Hi There,

sorry to have bothered you with this, I guess I have found a way. using SpecialDays.
Quite another thing is, how to combine this with using the Calendar as an Editor for DateTime?
(You know, something like Html.EditorFor(someDateTimeObject)).

Or it is rather that I want some kind of submit to happen, when selecting/clicking a date, so that I can work with that date further.

Thank you again!

Greetings Alex Endris
0
Radoslav
Telerik team
answered on 24 Jan 2011, 11:51 AM
Hi Alex,

Could you please elaborate a bit more on your scenario. Are you using the RadControls for ASP.NET AJAX or Telerik Extensions for ASP.NET MVC?  If you are using the RadControls for ASP.NET AJAX please check out the following demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx (Birth date and Hire date columns)

If you are using the Telerik Extensions for ASP.NET MVC check out the following link:
http://demos.telerik.com/aspnet-mvc/grid/editingserverside (Last supply column)

Please check it out and let me know if it helps you.

Best wishes,
Radoslav
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
leon
Top achievements
Rank 1
answered on 25 May 2011, 06:23 PM
Hi Alex,

In case you are using Telerik Extensions for ASP.NET MVC - could you please explain how you managed to use SpecialDays with it?

Thanks,
Leon
0
Yuriy
Top achievements
Rank 1
answered on 28 Sep 2012, 11:52 AM
Hello Gentlemen,

Were some of you able to customize calendar days? Like display different days in different manner, e.g. busy - red, available - green, etc.

Thank you much!
Tags
Calendar
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Radoslav
Telerik team
leon
Top achievements
Rank 1
Yuriy
Top achievements
Rank 1
Share this question
or