DirectMethod OnLoad event does not exist

  1. #1

    DirectMethod OnLoad event does not exist

    Good Afternoon,

    I upgraded my version to the newest one (1.1). Now VS is saying that the ONLOAD event does not exist on my DirectMethods. Why?

    <BeforeExpand OnEvent="BeforeExpand" Success="body.rendered=true;"  Before="return !record.rendered;">
    Thank you.
    Last edited by geoffrey.mcgill; Jul 16, 2011 at 10:02 PM. Reason: please use [CODE] tags
  2. #2
    Hi,

    Please provide more details
    What "ONLOAD" event do you mean? And how direct method is related with BeforeExpand DirectEvent?
  3. #3

    Example

    Quote Originally Posted by Vladimir View Post
    Hi,

    Please provide more details
    What "ONLOAD" event do you mean? And how direct method is related with BeforeExpand DirectEvent?
    Here on this sample: https://examples1.ext.net/#/GridPane...ic_GridPanels/

    After the upgrade VS is showing an error on this piece of code:

    <DirectEvents>
    <BeforeExpand 
        OnEvent="BeforeExpand" // <<<<<<<<<<<<<<<<<<<<<<<<<<<<< VS is saying that OnEvent does not exist.
        Before="return !body.rendered;" 
        Success="body.rendered=true;">
        <EventMask ShowMask="true" Target="CustomTarget" CustomTarget="={GridPanel1.body}" />
        <ExtraParams>
            <ext:Parameter Name="id" Value="record.id" Mode="Raw" />
        </ExtraParams>
    </BeforeExpand>
    </DirectEvents>
    This is happening in a lot of codes. In some places it is saying that i can't use an ID on a server side component.

    Thank you for the quick answer.
    Last edited by Daniil; Jul 17, 2011 at 8:45 PM. Reason: Please use [CODE] tags
  4. #4
    May be it is VS parser issue. Do you able to run the example?

Similar Threads

  1. [CLOSED] gridPanel after edit event doesn't exist
    By Daly_AF in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 15, 2012, 10:22 AM
  2. [CLOSED] Onload DirectMethods
    By majunior in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 19, 2011, 3:33 PM
  3. [CLOSED] directmethod and onload
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 21, 2011, 12:08 PM
  4. [CLOSED] [1.0] Change ListFilter options in DirectMethod/Event
    By ATSistemi in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 11, 2010, 8:52 AM
  5. [CLOSED] Run javascript on onload
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Nov 20, 2008, 8:17 AM

Posting Permissions