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

Customize the 'more' link in Monthly view

7 Answers 183 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
sandeep guilani
Top achievements
Rank 1
sandeep guilani asked on 13 Jul 2009, 02:26 PM
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

7 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 13 Jul 2009, 02:56 PM
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.
0
sandeep guilani
Top achievements
Rank 1
answered on 14 Jul 2009, 03:44 AM
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
0
Peter
Telerik team
answered on 15 Jul 2009, 03:25 PM
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.
0
Marshall Moorman
Top achievements
Rank 1
answered on 18 May 2010, 09:56 PM
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.
0
Marshall Moorman
Top achievements
Rank 1
answered on 19 May 2010, 02:44 AM
0
Gal
Top achievements
Rank 2
answered on 05 Jul 2011, 09:30 AM
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? 
0
Peter
Telerik team
answered on 08 Jul 2011, 12:57 PM
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!

Tags
Scheduler
Asked by
sandeep guilani
Top achievements
Rank 1
Answers by
Peter
Telerik team
sandeep guilani
Top achievements
Rank 1
Marshall Moorman
Top achievements
Rank 1
Gal
Top achievements
Rank 2
Share this question
or