- Home
- Forum
- ASP.NET Web Forms (Classic)
- Custom item in context menu
Custom item in context menu
Hi,
I am trying to set up custom item in the context menu for schedule. When clicked that item should invoke my own window, not the standard one such as Create Appointment. I do it in the user control.
The problem I have is that items I add are always disabled and not responsive to click event.
Can you please advise how to enable them.
I use version Version=9.304.0.61
this is my code:
AllowInline="True" AppointmentDataSourceID="LinqDataSource1" ScheduleType="Week"
CategoryDataSourceID="LinqDataSource3" ViewStrip="true" EnableViewState="true" ShowContextMenu="true"
ClientSideOnScheduleMenuItemClick="MenuClick1"
EnableXHTML="False" m_SchMode="Vertical"
ResourceDataSourceID="" StartDate="2011-08-26"
UserOverrideCulture="en-CA" AutoFormat="Office2007Silver">
MovingFront="ShiftPlusTab" MoveTimeCellUp="UpArrow" MoveTimeCellDown="DownArrow"
MoveTimeCellLeft="LeftArrow" MoveTimeCellRight="RightArrow" InsertAppointment="Insert"
DeleteAppointment="Delete" EditAppointment="Enter" ExportAppointment="ShiftPlusE"
ShowCalendarLeft="ShiftPlusL" ShowCalendarRight="ShiftPlusR" HideCalendar="ShiftPlusN"
Today="CtrlPlusAltPlus0" Day="CtrlPlusAltPlus1" WorkWeek="CtrlPlusAltPlus2" Week="CtrlPlusAltPlus3"
Month="CtrlPlusAltPlus4" Print="CtrlPlusP" MultiSelectionUp="ShiftPlusUpArrow"
MultiSelectionDown="ShiftPlusDownArrow" CopyAppointment="CtrlPlusC" CutAppointment="CtrlPlusX"
PasteAppointment="CtrlPlusV" FocusOut="Esc">
EndTimeField="EndTime" HasEndDateField="HasEndDate" LocationValueField="LocationValue"
MonthDateValueField="MonthDateValue" MonthNumberField="MonthNumber" OccurrencesNumberField="OccurenceNumber"
OwnerField="Owner" ReccurencePatternField="ReccurencePattern" StartReccurenceField="StartReccurence"
StartTimeField="StartTime" SubjectField="Subject" UniqueIDField="Id" UseFridayField="UseFriday"
UseMondayField="UseMonday" UseSaturdayField="UseSaturday" UseSundayField="UseSunday"
UseThursdayField="UseThursday" UseTuesdayField="UseTuesday" UseWednesdayField="UseWednesday"
WeekDayField="WeekDay" />
I am trying to set up custom item in the context menu for schedule. When clicked that item should invoke my own window, not the standard one such as Create Appointment. I do it in the user control.
The problem I have is that items I add are always disabled and not responsive to click event.
Can you please advise how to enable them.
I use version Version=9.304.0.61
this is my code:
CategoryDataSourceID="LinqDataSource3" ViewStrip="true" EnableViewState="true" ShowContextMenu="true"
ClientSideOnScheduleMenuItemClick="MenuClick1"
EnableXHTML="False" m_SchMode="Vertical"
ResourceDataSourceID="" StartDate="2011-08-26"
UserOverrideCulture="en-CA" AutoFormat="Office2007Silver">
MoveTimeCellLeft="LeftArrow" MoveTimeCellRight="RightArrow" InsertAppointment="Insert"
DeleteAppointment="Delete" EditAppointment="Enter" ExportAppointment="ShiftPlusE"
ShowCalendarLeft="ShiftPlusL" ShowCalendarRight="ShiftPlusR" HideCalendar="ShiftPlusN"
Today="CtrlPlusAltPlus0" Day="CtrlPlusAltPlus1" WorkWeek="CtrlPlusAltPlus2" Week="CtrlPlusAltPlus3"
Month="CtrlPlusAltPlus4" Print="CtrlPlusP" MultiSelectionUp="ShiftPlusUpArrow"
MultiSelectionDown="ShiftPlusDownArrow" CopyAppointment="CtrlPlusC" CutAppointment="CtrlPlusX"
PasteAppointment="CtrlPlusV" FocusOut="Esc">
MonthDateValueField="MonthDateValue" MonthNumberField="MonthNumber" OccurrencesNumberField="OccurenceNumber"
OwnerField="Owner" ReccurencePatternField="ReccurencePattern" StartReccurenceField="StartReccurence"
StartTimeField="StartTime" SubjectField="Subject" UniqueIDField="Id" UseFridayField="UseFriday"
UseMondayField="UseMonday" UseSaturdayField="UseSaturday" UseSundayField="UseSunday"
UseThursdayField="UseThursday" UseTuesdayField="UseTuesday" UseWednesdayField="UseWednesday"
WeekDayField="WeekDay" />
SIGN IN To post a reply.
1 Reply
RR
Ranjithkumar R G
Syncfusion Team
September 23, 2011 09:31 AM UTC
Hi Anvar,
Thanks for using Syncfusion products.
We would like to inform you that Menu items will get enabled only while clicking an appointment. Those menu items will be disabled by default while clicking on a schedule. Then, for custom appointment we suggest you to use AppointmentAddEditTemplate customize the appointment window. Please refer to the code-snippet below.
[ASPX]
ViewStrip="true" DayEndHour="20" DayStartHour="6" TimeInterval="FifteenMin" StartDate="2010-07-25"
Height="299px" Width="700" DayNavigatorPosition="HeaderLeft" ResolutionHeight="30" CustomizeAddEditAppointmentWindow="true" autopostbackonschedulecellclick="true" ShowContextMenu="true"
AutoFormat="Office2007Blue">
Please refer to the below UG link for further reference.
http://help.syncfusion.com/ug_93/User%20Interface/ASP.NET/Schedule/default.htm?turl=Documents%2F4310customizingaddeditappointmentwindow.htm
Please find the below link to download sample application.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=101007730354127.zip
Regards,
Ranjithkumar.
Thanks for using Syncfusion products.
We would like to inform you that Menu items will get enabled only while clicking an appointment. Those menu items will be disabled by default while clicking on a schedule. Then, for custom appointment we suggest you to use AppointmentAddEditTemplate customize the appointment window. Please refer to the code-snippet below.
[ASPX]
Height="299px" Width="700" DayNavigatorPosition="HeaderLeft" ResolutionHeight="30" CustomizeAddEditAppointmentWindow="true" autopostbackonschedulecellclick="true" ShowContextMenu="true"
AutoFormat="Office2007Blue">
Please refer to the below UG link for further reference.
http://help.syncfusion.com/ug_93/User%20Interface/ASP.NET/Schedule/default.htm?turl=Documents%2F4310customizingaddeditappointmentwindow.htm
Please find the below link to download sample application.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=101007730354127.zip
Regards,
Ranjithkumar.
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
AN anvar
- Sep 19, 2011 10:55 PM UTC
- Sep 23, 2011 09:31 AM UTC