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

ContextMenuSelectionID not show until after next postback

Asked by Anonymous
16 years ago.
I have a simple form with a day pilot calender,2 buttons and 2 menus.
Pressing the button will assign one of the 2 menus to the calender.

e.g. in button1 click "dp1.ContextMenuSelectionID = "a""
The menu wont appear until after the following post back.
Comment posted by Anonymous
16 years ago.
I have exactly the same problem, any help is appreciated...
Comment posted by Dan Letecky
16 years ago.
You have to assign it on the client side as well:

dpc1.contextMenu = contextMenu1;

Where:
  • "dpc1" is the value of DayPilotCalendar1.ClientObjectName
  • "contextMenu1" is the value of DayPilotMenu1.ClientObjectName
Note that this will get overwritten during the next PostBack by the server-side settings.
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.