Binding Events data from database to Calendar control

4 posts, 0 answers
  1. Hafeez
    Hafeez avatar
    5 posts
    Member since:
    Apr 2007

    Posted 31 Oct 2012 Link to this post

    Hi,
    I have a requirement where I need to get the events data from a table in database and assign it in a calendar.
    The table has startdate, enddate, event title, event description fields.
    The data is already saved via a custom form.
    I need to bind events on a particular day for the month rendered and should be hyperlinked.
    Once the user clicks on a particular event it should redirect to a page where it displays full details.
    If the user changes the month then it should bind the appropriate events from the database for the respective days.
    I would like to know if this can be acheived via telerik or  not.
    If yes any guidance to existing piece of code or documentation would be very much helpful.
    Thanks in advance.

    Regards,
    Mohammed Hafeezuddin
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 01 Nov 2012 Link to this post

    Hi,

    You can try RadScheduler to achieve your scenario. Please take a look into this Documentation and Demo for more information.

    Hope this helps.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hafeez
    Hafeez avatar
    5 posts
    Member since:
    Apr 2007

    Posted 01 Nov 2012 Link to this post

    Hi Shinu,

    Iam looking out for the functionality as shown here http://www.dubaicalendar.ae/en/section/events/monthly-events-schedule?month=11&year=2012

    The demo which you have referred to is for radscheduler, I am lookin out for just calender which will show just the events which are clickable.

    Regards,
    Hafeez
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Nov 2012 Link to this post

    Hi Hafeez,

    One suggestion is that you can add controls to RadCalender cell as follows.

    C#:
    protected void RadCalendar1_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
    {
     if (e.Day.Date.Day == 10) // Sample Condition
     {
        Label lbl = new Label();
        lbl.Text =  Value from database
        e.Cell.Controls.Add(lbl);
      }
    }

    Hope this helps.

    Thanks,
    Shinu.
Back to Top