[CLOSED] SchedulerGrid EventStore

  1. #1

    [CLOSED] SchedulerGrid EventStore

    Hi, we're trialling the Scheduler component and playing with DirectEvents. We're not extending the EventStore, just using the standard model and having trouble getting data using the <ExtraParams>. When an event is added should the direct events be run on the SchedulerGrid or the EventStore? And should the Parameter Value come from Sch.data? Any assistance appreciated.

    <DirectEvents>
        <Add OnEvent="EventAdded">
        <ExtraParams>
            <ext:Parameter Name="Record" Value="Ext.encode(Sch.data)" Mode="Raw" />
        </ExtraParams>
        </Add>
    </DirectEvents>
    Last edited by Daniil; Aug 17, 2012 at 5:09 AM. Reason: [CLOSED]
  2. #2
    According ExtJS documentation, Add event will fire after adding record or records to a store
    http://docs.sencha.com/ext-js/4-1/#!...tore-event-add

    Please note when you bind data to the store then that event will be fired also
    Also please note that it is array of records, not single record
    So, you can try
    <ext:Parameter Name="Record" Value="Ext.encode(records[0].data)" Mode="Raw" />
  3. #3
    Thanks Vladimir, works great.
    Adrian.

Similar Threads

  1. [CLOSED] Add Event in a EventStore in a CalendarPanel
    By FpNetWorth in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 14, 2012, 12:29 PM
  2. Why Calendar cannot render with EventStore?
    By tonyls in forum 1.x Help
    Replies: 5
    Last Post: Mar 22, 2012, 8:19 PM
  3. Replies: 1
    Last Post: Jul 07, 2011, 4:07 PM
  4. Unable to DataBind EventStore
    By awptimus in forum 1.x Help
    Replies: 1
    Last Post: May 21, 2011, 11:40 AM
  5. [CLOSED] EventStore and REST API
    By craig2005 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 04, 2011, 3:19 PM

Posting Permissions