Home Unanswered Active Tags New Question

How to pass params with ContextMenu NavigateUrl action?

I'm trying to pass a single parameter with a context menu item. From the documentation ( http://www.daypilot.org/context-menu.html ) I understood that a {0} in the url will be replaced with the event value, but this is not the case.

Using: <DayPilot:MenuItem Text="View" Action="NavigateUrl" NavigateUrl="page.aspx?id={0}" />
will bring you to "page.aspx?id={0}" , no substitution is done.

Am I missing the point?

(I'm using a javscript action for the moment to get this functionality so it's not that important).
Asked by D. Ritchi 4 years ago.
Replies
I'll check it.
Comment posted by Dan Letecky 4 years ago.
I confirm the bug. I've fixed it and the fix will be included in the next release.
If you need the fix now let me know at daypilot @ annpoint.com.
Comment posted by Dan Letecky 4 years ago.

will be nice if we could use the TAG values to build all javascript or url links.

can we do that?

<MenuItem Text="View details" Action="NavigateUrl" NavigateUrl="EventCopyTo.aspx?eventID={0}&recurID={1}" />

Comment posted by Anonymous 2 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java