search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Issue with context menu command - daypilot version 6.1.2 version

Asked by Nihas
11 years ago.

We were trying to ugrade the existing dll to 6.1.2 version. But we are getting a exception like "Microsoft JScript runtime error: 'command' is undefined" when we click on any of the context menu items. It was working fine in the version 5.4.

This is because the command object does not have value at client side, when menu click action occurs on context menu

We are using the following code to get call the command events in 5.4.

<DayPilot:DayPilotMenu ID="dpmAfter" runat="server" ClientObjectName="dpmAfter" MenuTitle="test" MenuTitleBackColor="#AAD2EC">
<DayPilot:MenuItem Action="JavaScript" JavaScript="if(confirm('testtest?')){dpcAppointment.eventMenuClickPostBack(e, command);}" Command="remove" Text="remove" />

Could please help us to solve this issue.



This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.