/** * */ private void DataGroupRendererRemoveHandler(Event e) { RendererExistenceEvent ree = (RendererExistenceEvent)e; IVisualElement renderer = ree.Renderer; if (null != renderer) { renderer.RemoveEventListener(MouseEvent.CLICK, ItemClickHandler); } }
/** * */ 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; } } }