MVC and OnDayRender

5 posts, 0 answers
  1. Alex
    Alex avatar
    2 posts
    Member since:
    Jan 2011

    Posted 19 Jan 2011 Link to this post

    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
  2. Alex
    Alex avatar
    2 posts
    Member since:
    Jan 2011

    Posted 19 Jan 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 24 Jan 2011 Link to this post

    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.
  5. leon
    leon avatar
    1 posts
    Member since:
    May 2011

    Posted 25 May 2011 Link to this post

    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
  6. Yuriy
    Yuriy avatar
    10 posts
    Member since:
    May 2012

    Posted 28 Sep 2012 Link to this post

    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!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017