Example #1
0
        /**
         *
         */
        private void DataGroupRendererRemoveHandler(Event e)
        {
            RendererExistenceEvent ree      = (RendererExistenceEvent)e;
            IVisualElement         renderer = ree.Renderer;

            if (null != renderer)
            {
                renderer.RemoveEventListener(MouseEvent.CLICK, ItemClickHandler);
            }
        }
Example #2
0
        /**
         *
         */
        private void DataGroupRendererAddHandler(Event e)
        {
            RendererExistenceEvent ree = (RendererExistenceEvent)e;

            IVisualElement renderer = ree.Renderer;

            if (null != renderer)
            {
                renderer.AddEventListener(MouseEvent.CLICK, ItemClickHandler);
                var component = renderer as IFocusManagerComponent;
                if (component != null)
                {
                    component.FocusEnabled = false;
                }
                var button = renderer as ButtonBarButton;
                if (button != null)
                {
                    button.AllowDeselection = !RequireSelection;
                }
            }
        }