Ticket Q344061
Visible to All Users

Dashboards - Add an Action that deletes a dashboard created by a user at runtime

created 13 years ago

Is it possible to delete a dashboard created by the user without providing them with access to the model editor?
We currently allow users who do not have access to the model editor to create their own dashboards but there is no way I can see for the user to delete the associated view and navigation item without providing them with access to the model. Please let me know if I am missing something obvious or if you have a suggestion to accomplish this task.

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

We have implemented the functionality described in this ticket. It will be included in our next update(s).

Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

Additional information:

We have added the DeleteDashboardsController which provides the DeleteDashboard Action. This Action is located in the Tools category and invokes a popup dialog with a list of all dashboard views defined in the user's model differences.


In this popup you can select one or more dashboards and click Delete to remove them. The DeleteDashboardsController.CanDeleteParentGroup property specifies whether or not the dashboard's parent group is deleted when you remove the last dashboard in this group. The DeleteDashboard Action is active when there are dashboards that can be deleted and the EnableCreation property of the Options | Dashboards node is set to true in the Application Model.

    Other Answers

    created 13 years ago

    Hello Mark,
    Thank you for contacting us. Would you consider implementing a Controller with a Remove Dashboard Action a suitable solution? My idea is to write the necessary removal code (to remove the DashBoardView node from the list of Views and also from the NavigationItems node) and execute it within the Action. Refer to the http://documentation.devexpress.com/#Xaf/CustomDocument3169 help article for more information.
    I look forward to hearing from you.
    Thanks,
    Dennis

      Show previous comments (1)

        Dennis, Thanks for you help. I figured we would have to write code to accomplish the task but I wanted to make sure I wasn't missing something.

        Dennis Garavsky (DevExpress) 13 years ago

          Hi Mark,
          Thank you for the clarification. I hope you do not mind having this feature implemented in XAF by default. Feel free to jump in on a respective forum discussion: http://community.devexpress.com/forums/p/104649/354628.aspx#354628
          Thanks,
          Dennis

            Good news! I have been waiting for it since long time. Thanks to the DevExpress team for taking it up.

            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.