Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2167
Order Of Events
posted

Is there a list of the order of CSOM events for the WebGrid?

 

  • 28464
    posted

    Hello Robert,

    There is no explicit list of events the occur on the client and the order of their firing, since it really depends on the action you want to take. On the client-side there are just a few events that fire always, like InitializeRow and InitializeLayout. The rest are only fired when a specific action takes place (caused by end-user action or programmatically, via code). In this case, typically e BeforeXXX CSOM event is fired that can be cancelled, after the action an AfterXXX event is fired (non-cancellable).

    For example:

    BeforeCellUpdate
    AfterCellUpdate

    All client-side events are documented here:

    http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR3.5/html/WebGrid_Client_Side_Events_CSOM.html

    I know that it may be tricky, but in the case where you have hooked a lot of client-side events, you can use a log (a simple div where you can output their name, in order to check out the precedence), since there are literally thousands of permutations of client-side events that can take place (e.g. MouseDown, then CellClick, then XmlHttpResponse for AJAX, then AfterXmlHttpRequest, then MouseUp), it is really hard to list all of them.