Direct Events dynamic Url

  1. #1
    Ok, both problems solved with this:

    <ExtraParams>
        <ext:Parameter Name="id" Value="record.id" Mode="Raw"></ext:Parameter>
    </ExtraParams>
    "id" is the standard mapping for the third parameter in the route map, but it can be passed in the querystring as well... sorry for being silly :)
  2. #2

    Direct Events dynamic Url

    Hi All,

    I have 2 problems somewhat related. I would like to do something like this in my Direct Events:
    <DirectEvents>
        <EventClick Url="/Campaign/Summary/{record.id}"> <-- This, or similar, is what I would like...
        </EventClick>
    </DirectEvents>
    But of course it seems not possible... but it would be nice if it could be done, since in MVC it is a lot easier to pass the id parameters like this.

    A second problem is if I try to pass the parameter like this:
    <DirectEvents>
        <EventClick Url="/Campaign/CalendarSummary/">
            <ExtraParams>
                <ext:Parameter Name="campaignId" Value="function() { return record.id; }" Mode="Raw"></ext:Parameter>
            </ExtraParams>
        </EventClick>
    </DirectEvents>
    I don't know why, but the actual parameter being passed is the string: "function() { return record.id; }" rather than the id... I have checked by putting an "alert" and the record.id is defined and has a value indeed, but I am probably missing something silly here... :(

    Any idea?

    Regards,

Similar Threads

  1. Direct Events with Razor
    By gdog_5021 in forum 2.x Help
    Replies: 3
    Last Post: Aug 15, 2012, 10:46 AM
  2. Dynamic UserControl + Direct Events
    By Zdenek in forum 2.x Help
    Replies: 4
    Last Post: Jul 22, 2012, 5:51 PM
  3. [CLOSED] How to Call an event by Direct Events
    By Oliver in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 12, 2012, 6:33 PM
  4. Calendar - EventEditForm - Direct Events
    By vwagoner in forum 1.x Help
    Replies: 4
    Last Post: Jun 17, 2011, 5:27 PM
  5. [CLOSED] Direct events in user control
    By tiramisu in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Dec 13, 2010, 11:34 AM

Tags for this Thread

Posting Permissions