Customize the 'more' link in Monthly view

8 posts, 0 answers
  1. sandeep guilani
    sandeep guilani avatar
    3 posts
    Member since:
    Jul 2009

    Posted 13 Jul 2009 Link to this post

    Hi,

    We have two extremly important requirements as below :

    1.   To show the count of appointments in monthly view. Is there some way that we can customize the text in 'more' link to show the count of appointments (like in google calendars they show the count of appointments for that day) ?

    2. We need to add another 'Agenda' view like in google calendars. How to do that seamlessly with consistent look and feel as existing views ?

    Would really appreciate if we could have answers to the above asap.
    Also, for both the above would it be a feasible option to extend the source code and use the control once we buy the licencsed version of the product and have access to the code ?

    Thanks,
    Sandeep
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 13 Jul 2009 Link to this post

    Hi sandeep,

    1. We replied to the other forum on this question. I am not sure if you had a chance to see it:
    http://www.telerik.com/community/forums/aspnet-ajax/scheduler/customize-event-template-in-month-view.aspx

    2. Currently, RadScheduler does not have an Agenda view, but if there is an increased demand for such a feature, we will consider implementing it.

    Thanks for your questions.


    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. sandeep guilani
    sandeep guilani avatar
    3 posts
    Member since:
    Jul 2009

    Posted 13 Jul 2009 Link to this post

    Thanks for the quick reply Peter.

    1.  I had a look at the tool tip solution you provided but that doesn't seem to serve our purpose. Also in that the same tool tip (with count /all the appointments) then appears on all the appointments. Is there some way that the tool tip can appear on the time slot rather than individual appointments while the tool tip for individual appointments remains as is.

    2. Can there be RADContext Menu on an Appointment. I was able to add it to a time slot.  Basically i want to give an option to duplicate an event when the user right clicks an appointment.

    3. Most important one - Could you please let me know if I can extend the control and implement the desired features once i buy the product and have access to the source code.

    need the answers urgently please.

    Thanks,
    Sandeep
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 15 Jul 2009 Link to this post

    Hi sandeep,

    1. We will consider your request and we might provide the necessary API or feature to meet this requirement.

    2. Yes, this is possible. Please, see this demo on how to implement a context menu for appointments:
    http://demos.telerik.com/aspnet-ajax/scheduler/examples/contextmenu/defaultcs.aspx

    3. If you purchase the product, you get the full source code of the controls and you are allowed to extend that code as per your needs. However, we do not support custom modifications of the source code.

    All the best,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Marshall Moorman
    Marshall Moorman avatar
    8 posts
    Member since:
    Sep 2007

    Posted 18 May 2010 Link to this post

    I am having an issue that is sort of related.  I would like to display all the appointments for a given day in the month view.  Currently it is only showing the first 4 and then displaying the arrow for more.  We don't have a limit to the number of appointments for a given day, but we need to display them all.  I was hoping that the scheduler would just resize itself to allow for the extra space.
  7. Gal
    Gal avatar
    48 posts
    Member since:
    Apr 2009

    Posted 05 Jul 2011 Link to this post

    Hi Peter 
    "1. We will consider your request and we might provide the necessary API or feature to meet this requirement. "

    Did you guys implement a solution for this problem? 
  8. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 08 Jul 2011 Link to this post

    Hello Gal,

    Here is one possible workaround:
    <script type="text/javascript">
           function pageLoad() {
               var $ = $telerik.$;
               var numberOfAptsPerDayArray = document.getElementById("HiddenField1").value.toString().split("-");
               $(".rsShowMore").each(function (i) {
                   $(this).text("appointments: " + numberOfAptsPerDayArray[i]);
               });
           }
       </script>
       <asp:HiddenField ID="HiddenField1" runat="server" />
       <telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="MonthView"
           OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" OnDataBound="RadScheduler1_DataBound">
       </telerik:RadScheduler>

    private SortedDictionary<int, int> sd = new SortedDictionary<int, int>();
     
      protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
      {
          int day = e.Appointment.Start.Day;
          if ((e.Appointment.Start > RadScheduler1.VisibleRangeStart) && (e.Appointment.Start < RadScheduler1.VisibleRangeEnd))
          {
              if (sd.ContainsKey(day))
              {
                  int numberOfAppointments = sd[day];
                  numberOfAppointments++;
                  sd.Remove(day);
                  sd.Add(day, numberOfAppointments);
              }
              else
              {
                  sd.Add(day, 1);
              }
          }
      }
     
      protected void RadScheduler1_DataBound(object sender, EventArgs e)
      {
          IDictionaryEnumerator en = sd.GetEnumerator();
          HiddenField1.Value = null;
          while (en.MoveNext())
          {
              if (Convert.ToInt16(en.Value) > RadScheduler1.MonthView.VisibleAppointmentsPerDay)
              {
                  Response.Write(en.Key.ToString() + " - " + en.Value.ToString() + "</br>");
                  HiddenField1.Value += en.Value.ToString() + "-";
              }
          }     
      }

    Kind regards,
    Peter
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017