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
55
Adding a behavior to a WebDataGrid via Javascript
posted

I would like to be able to add the activation behavior in a WebDataGrid's AddNewRowClientEvents-EnteringEditMode in javascript.

I'm trying this code, but I it does not recognize Infragistics.Web.UI.Activation(). 

        function enteringEditMode(sender, args) {
            var instanceVar = new Infragistics.Web.UI.Activation();
            sender.get_behaviors().add(instanceVar);
        }

I would appreciate any help you can offer.

Thanks.