Ticket T348006
Visible to All Users
Duplicate

Conditional formatting menu for PivotGrid ListView

created 9 years ago

I'm trying to allow the end users to be able to control the conditional formatting for a PivotGrid ListView.
I have a custom view controller that enables this menu via:

C#
pivotGridListEditor.PivotGridControl.OptionsMenu.EnableFormatRulesMenu = true;

When right-clicking on the pivot grid - the actual formatting menu appears (if you hold down the right click mouse button), but is quickly overriden by the general context menu (once you release the button).
Using a simple action appears to be better direction, however I'm unable to find a method (like ShowConditionalFormattingForm) to show the conditional formatting manager.

Any guidance on how to allow users to customize conditional formatting for Pivot style list views in XAF would be appreciated. I have found the links on how to do it for Grid and TreeView but unable to do this for Pivot. The same functionality is working fine when using Analysis module, however I do not want to use it as I would like users to retain their own layout and I would like to simply show a ListView as Pivot.

Thank you,
Miro

Comments (1)
Dennis Garavsky (DevExpress) 9 years ago

    Hello Miro,

    Thank you for your report. We will research the integration of the EnableFormatRulesMenu option with our PivotGridListEditor and inform you of our results. Please bear with us.

    Answers approved by DevExpress Support

    created 9 years ago

    Hello Miro,

    In the meantime, you can implement a simple PivotGridListEditor descendant and use it in your application:

    C#
    using DevExpress.ExpressApp.Model; using DevExpress.ExpressApp.PivotGrid.Win; using DevExpress.ExpressApp.Win.SystemModule; namespace YourSolution.Module.Win.Controllers { public class T348006_PivotGridListEditor : PivotGridListEditor, IContextMenuTarget { public T348006_PivotGridListEditor(IModelListView model) : base(model) { } bool IContextMenuTarget.ContextMenuEnabled { get { return false; } } } }

    Our XAF and XtraPivotGrid teams will also take your scenario into account. For instance, if the "Conditional Formatting" menu could be available in the column header context menu as it is in GridControl and TreeList (near the column chooser and other standard menus), the issue would not occur at all.

      Comments (2)
      M M
      Mohamed Al Zayani 8 years ago

        how about the rest of the IContextMenuTarget interface implementation?

        Dennis Garavsky (DevExpress) 8 years ago

          @Mohamed: You do not need to redefine it completely as the rest part  will be taken from the PivotGridListEditor class.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.