buy now
log in
MindFusion

Q: I am having problems in setting the culture of the date format from US to other types.

A: In order to set the culture of the calendar to, say German, you can use the following syntax:

calendar1.Culture = new CultureInfo("de-DE");

Q: What are the limitations of the trial version and how long does the trial run for?

A: There aren't any limitations in the trial version, and it never expires. It just displays that "Trial Version" label in the lower left corner.

Q: I'm using Planner.NET to display appointments only, is there a way to make the calendar (Timetable view) read only, with only scrolling enabled?

A: See the question about Read-only timetable view in this FAQ for a possible solution. You can also set Calendar.Enabled to false to disable all interaction with the control (including scrollbars).

Q: We need to be able to pick just a time within a day, and I was wondering if Planner.NET, in Timetable view, could be used to do this.

A: Try handling the DateClick event. The DateTime instance passed as parameter to the event handler will give you the start time of the clicked cell.

Q: If the user has scrolled months, years in the future or past, is there a way to bring them back to today?

A: The method EnsureVisible enables you to 'scroll' to any date or item currently contained within the view. Here is a code which will 'scroll' to today:

	calendar.EnsureVisible(DateTime.Today); 
 
This method only works if the targeted date or item is already contained somewhere within the control. The method simply adjusts the values of the scrollbars. It cannot change the start or end date of the contained time interval.

Q: Is there a property which will allow me to show a weekly schedule removing the days the user doesn't want to see?

A: The only view that supports filtering of days is the Timetable view. The days displayed in this view are specified by the Calendar.TimetableSettings.Dates collection.

Q: Can I display multiple people's schedules in a timetable style format? For example, the secretary needs to schedule appointments for : Bob, Mike & John seeing all on a single screen.

A: Define the people in the schedule as shown below:

Contact c;

c = new Contact();
c.FirstName = "Bob";
calendar.Schedule.Contacts.Add(c);

c = new Contact();
c.FirstName = "Mike";
calendar.Schedule.Contacts.Add(c);

c = new Contact();
c.FirstName = "John";
calendar.Schedule.Contacts.Add(c);
 After some contacts are available in the Schedule, select the ones to be displayed in the calendar by adding them to the Contacts collection of the Calendar control. 
calendar.Contacts.Add(calendar.Schedule.Contacts[0]);
calendar.Contacts.Add(calendar.Schedule.Contacts[1]);
calendar.Contacts.Add(calendar.Schedule.Contacts[2]);
 You could group the contact appointments in their distinct columns by setting GroupType as shown below: calendar.GroupType = GroupType.GroupByContacts;
calendar.CurrentView = CalendarView.Timetable;
calendar.TimetableSettings.VisibleColumns = 3;

Copyright © 2001-2024 MindFusion LLC. All rights reserved.
Terms of Use - Contact Us