Bug Report Q145345
Visible to All Users

Web - Actions order doesn't work for the Unspecified category

created 16 years ago

Hello,
I would like to ask you, for a web application, how can I specify a specific order for a few simpleactions that I have created.
Let's say that I have three simpleactions and each simpleaction 1 to 3 (button1, button2, button3) is created by a different viewcontroller (1 to 3), now I would like to specify which one goes first, second and third in the row.
Thanking you in advance.
Regards,
Vakis
Steps to Reproduce:
<ActionDesign>
          <ActionToContainerMapping>
               <ActionContainer ID="Unspecified">
                    <ActionLink ActionID="1" Index="3" />
                    <ActionLink ActionID="2" Index="2" />
                    <ActionLink ActionID="3" Index="1" />
               </ActionContainer>
          </ActionToContainerMapping>
     </ActionDesign>
+
namespace MainDemo.Module.Web {
    partial class ViewController1 {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing) {
            if (disposing && (components != null)) {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
        #region Component Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent() {
            this.components = new System.ComponentModel.Container();
            this.simpleAction1 = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
            this.simpleAction2 = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
            this.simpleAction3 = new DevExpress.ExpressApp.Actions.SimpleAction(this.components);
            //
            // simpleAction1
            //
            this.simpleAction1.Caption = "1";
            this.simpleAction1.Id = "1";
            //
            // simpleAction2
            //
            this.simpleAction2.Caption = "2";
            this.simpleAction2.Id = "2";
            //
            // simpleAction3
            //
            this.simpleAction3.Caption = "3";
            this.simpleAction3.Id = "3";
        }
        #endregion
        private DevExpress.ExpressApp.Actions.SimpleAction simpleAction1;
        private DevExpress.ExpressApp.Actions.SimpleAction simpleAction2;
        private DevExpress.ExpressApp.Actions.SimpleAction simpleAction3;
    }
}

Comments (2)
EH EH
Efstathios Hadjiefthymiades 16 years ago

    Hi again,
    All simpleactions are in the unspecified mapping, so I tried to order them using index for the model Application|ActionDesign|ActionToContainerMapping|Unspecified, but nothing happens.
    Do I have to do something else in ordering?
    Thanks
    Vakis

    Dennis Garavsky (DevExpress) 16 years ago

      Hello Vakis,
      I have reproduced the problem in the 8.2.8 version. It looks like a bug for me. This requires additional research from our side. So, we have also converted your question to the Bug report with the same ID.
      Unfortunately, there is no good workaround for this problem. We are working on this. Please bear with us.
      See Also:
      How to: Reorder an Action Container's Actions Collection
      Thanks,
      Dennis

      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.