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
1150
Attaching events through CSOM
posted

Is there an easy way to attach event handlers fro WebDataGrid events through CSOM (not in a declarative way)? For example EditingClientEvents.RowDeleted event.

What I want to achieve, is that different page features/behaviors must intercept certain WDG events to do some action. And that should happen alway  when that feature is activated on the page (regardless if  EditingClientEvents.RowDeleted is given on the source code).

I mean I don't want only attach one event handler to some events, but many of them and from different code parts.

  • 1150
    Verified Answer
    posted

    I think I managed to find a way to achieve it (a little help from Firebug :). 

    Infragistics objects derive from Sys.UI.Component, so i can use:

    grid.get_behaviors().get_editingCore().get_events().addHandler('RowAdding', function(sender, args) { // some code});