Search
Calendar.buttonClick Event
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML
C#
Visual Basic
Java
JavaScript
C++
XAML
Introduction
General Information
What's New In This Release
Version History
Getting Started
Code Completion With VSDoc IntelliSense
Programming Interface Overview
Tutorials
Reference
MindFusion.Common
MindFusion.Common.Collections
MindFusion.Controls
MindFusion.Scheduling
BaseForm Class
ButtonEventArgs Class
Calendar Class
Calendar Members
Calendar Constructor
Calendar Methods
Calendar Properties
Calendar Events
buttonClick Event
cellClick Event
cellDoubleClick Event
cueClick Event
formClose Event
formShow Event
headerClick Event
headerDoubleClick Event
itemClick Event
itemCreated Event
itemCreating Event
itemDeleted Event
itemDeleting Event
itemDoubleClick Event
itemDraw Event
itemModified Event
itemModifying Event
itemReminderTriggered Event
itemSelectionChanged Event
recurringItemDeleting Event
repainted Event
scheduleChanged Event
selectionChanged Event
selectionEnd Event
selectionStart Event
taskReminderTriggered Event
visibleDateChanged Event
CalendarView Enumeration
CellEventArgs Class
Contact Class
CueForm Class
DailyRecurrence Enumeration
DateChangedEventArgs Class
DateTime Class
DayOfWeek Enumeration
DayOfWeekFormat Enumeration
DayOfWeekType Enumeration
DaysOfWeek Enumeration
FormEventArgs Class
GroupType Enumeration
HeaderEventArgs Class
HeaderType Enumeration
HorizontalHeaderStyle Enumeration
Item Class
ItemEventArgs Class
ItemModifiedEventArgs Class
ItemModifyAction Enumeration
ItemModifyingEventArgs Class
ItemSettings Class
JsonPersistContext Class
Keys Enumeration
ListSettings Class
LocalStrings Class
Location Class
MainHeaderStyle Enumeration
MonthlyRecurrence Enumeration
MonthRangeSettings Class
MonthSettings Class
Occurrence Enumeration
Orientation Enumeration
Recurrence Class
RecurrenceEnd Enumeration
RecurrenceException Class
RecurrencePattern Enumeration
RecurrenceState Enumeration
Reminder Class
ReminderType Enumeration
Resource Class
ResourceViewSettings Class
ResourceViewTimeline Enumeration
Schedule Class
Selection Class
SelectionEventArgs Class
Task Class
TaskEventArgs Class
TaskPriority Enumeration
TaskStatus Enumeration
TimelineSettings Class
TimeRange Class
TimeSpan Class
TimetableSettings Class
TimeUnit Enumeration
VerticalHeaderStyle Enumeration
ViewCell Class
WebComponents Class
WeekRangeSettings Class
WeekRangeViewStyle Enumeration
XmlPersistContext Class
YearlyRecurrence Enumeration
Licensing
Online Resources
Technical Support
MindFusion Products

Raised when a navigation button is clicked.

Namespace: MindFusion.Scheduling
Assembly: Calendar.js

## Syntax

JavaScript Copy Code
EventDispatcher buttonClick

## Event Data

The event handler method receives the following arguments:
sender
A Calendar instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A ButtonEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

## Example

The following example attaches a handler to the buttonClick event of a calendar. In the handler method we check the button that has triggered the action and cancel it.

JavaScript Copy Code
// attach handler - click of a button calendar.buttonClick.addEventListener(handleButtonClick); function handleButtonClick(sender, args) { if(args.button == doNotAllowButton) { //cancel the action args.cancel = true; } }

## See Also

Calendar Members
Calendar Class
MindFusion.Scheduling Namespace