Bug Report T490025
Visible to All Users

WebEditDashboardController hides the Edit Action of ListViewController and doesn't reactivate it

created 8 years ago

Hi,
In WebEditDashboardController EditAction is deactivating in OnActivated event as show below. But it is not activating back in OnDeactivated event.
This is causing the EditAction is deactivated in all views.

C#
protected override void OnActivated() { base.OnActivated(); UpdateActionState(); View.AllowEdit.SetItemValue(EnabledInDashboard, false); ListViewController listViewController = Frame.GetController<ListViewController>(); if(listViewController != null) { listViewController.EditAction.Active.SetItemValue(EnabledInDashboard, false); } } protected override void OnDeactivated() { base.OnDeactivated(); }

Thansk,
Akın GÜNEŞ
GÜNCEL YAZILIM

Show previous comments (2)
Dennis Garavsky (DevExpress) 8 years ago

    Hello Akin,

    I've replicated this behavior using our FeatureCenter.Web demo using these steps:

    1. Run FeatureCenter.Web;
    2. Navigate to Criteria Properties and remember that Edit Action is active;
    3. Navigate to Sales Overview and then back to Criteria Properties - it will not contain the Edit Action.

    Currently, you can use the following temporary solution:

    C#
    using DevExpress.ExpressApp.Web.SystemModule; namespace FeatureCenter.Module.Web { public class WebEditDashboardControllerEx: DevExpress.ExpressApp.Dashboards.Web.WebEditDashboardController { protected override void OnDeactivated() { ListViewController listViewController = Frame.GetController<ListViewController>(); if(listViewController != null) { listViewController.EditAction.Active.SetItemValue(EnabledInDashboard, true); } base.OnDeactivated(); } } }

    Please accept our apologies for any inconvenience here.

      Hi Dennis,
      Thank you for your answer. I have already used a workaround to solve .
      I just wanted to report you this bug and hope it will be fixed next release.

      Thanks,
      Akın GÜNEŞ

      Dennis Garavsky (DevExpress) 8 years ago

        My team and I appreciate your help, Akin!

        Answers approved by DevExpress Support

        created 8 years ago (modified 8 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          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.