/// <summary> /// Handles invocation of PostRenderFilterPopupGripBar events /// </summary> internal void DoPostRenderFilterPopupGripBarEvent( Graphics g, FilterPopup filterPopup, GridColumn gridColumn, Rectangle bounds) { if (PostRenderFilterPopupGripBar != null) { GridPostRenderFilterPopupGripBarEventArgs ev = new GridPostRenderFilterPopupGripBarEventArgs(g, filterPopup, gridColumn, bounds); PostRenderFilterPopupGripBar(this, ev); } }
/// <summary> /// Handles invocation of PreRenderFilterPopupGripBar events /// </summary> internal bool DoPreRenderFilterPopupGripBarEvent( Graphics g, FilterPopup filterPopup, GridColumn gridColumn, Rectangle bounds) { if (PreRenderFilterPopupGripBar != null) { GridPreRenderFilterPopupGripBarEventArgs ev = new GridPreRenderFilterPopupGripBarEventArgs(g, filterPopup, gridColumn, bounds); PreRenderFilterPopupGripBar(this, ev); return (ev.Cancel); } return (false); }
/// <summary> /// Handles invocation of FilterPopupLoaded events /// </summary> internal void DoFilterPopupLoadedEvent(GridColumn column, FilterPopup filterPopup) { if (FilterPopupLoaded != null) { GridFilterPopupLoadedEventArgs ev = new GridFilterPopupLoadedEventArgs(column.GridPanel, column, filterPopup); FilterPopupLoaded(this, ev); } }
/// <summary> /// Handles invocation of FilterPopupOpening events /// </summary> internal bool DoFilterPopupOpeningEvent(GridColumn column, FilterPopup filterPopup) { if (FilterPopupOpening != null) { GridFilterPopupOpeningEventArgs ev = new GridFilterPopupOpeningEventArgs(column.GridPanel, column, filterPopup); FilterPopupOpening(this, ev); return (ev.Cancel); } return (false); }
///<summary> /// GridPreRenderFilterPopupGripBarEventArgs ///</summary> ///<param name="graphics"></param> ///<param name="filterPopup"></param> ///<param name="gridColumn"></param> ///<param name="bounds"></param> public GridPreRenderFilterPopupGripBarEventArgs(Graphics graphics, FilterPopup filterPopup, GridColumn gridColumn, Rectangle bounds) : base(graphics, filterPopup, gridColumn, bounds) { }
///<summary> /// GridPostRenderFilterPopupGripBarEventArgs ///</summary> ///<param name="graphics"></param> ///<param name="filterPopup"></param> ///<param name="gridColumn"></param> ///<param name="bounds"></param> public GridPostRenderFilterPopupGripBarEventArgs(Graphics graphics, FilterPopup filterPopup, GridColumn gridColumn, Rectangle bounds) : base(gridColumn.GridPanel, gridColumn) { _Graphics = graphics; _FilterPopup = filterPopup; _Bounds = bounds; }
///<summary> /// GridFilterPopupOpeningEventArgs ///</summary> ///<param name="gridPanel"></param> ///<param name="gridColumn"></param> ///<param name="filterPopup"></param> public GridFilterPopupOpeningEventArgs( GridPanel gridPanel, GridColumn gridColumn, FilterPopup filterPopup) : base(gridPanel, gridColumn) { _FilterPopup = filterPopup; }
internal void ActivateFilterPopup(GridPanel panel, GridColumn column) { if (_FilterMenu != null) _FilterMenu.Dispose(); _FilterMenu = new FilterPopup(panel); _LockedColumn = true; _HitArea = HeaderArea.NoWhere; _FilterMenu.ActivatePopup(column, ResetColumnState); }
private void ProcessFilterHit(GridGroupBox box) { if (_FilterMenu != null) _FilterMenu.Dispose(); _LockedColumn = true; _FilterMenu = new FilterPopup(GridPanel); _FilterMenu.ActivatePopup(box.Column, box.FilterImageRelBounds, ResetState); }