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.
Dashboards - Add an Action that deletes a dashboard created by a user at runtime
Answers approved by DevExpress Support
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.
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.
- v15.2.4Download Official Update
Other Answers
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
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.
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.