It’s a difficult time for many – our hats off to the brave men and women helping heal those affected by the virus. We’ll get through this together.
We are working hard to get our next major release out the door in the next 45 days. We expect to share more information on the release and what we expect to include shortly. In the meantime, here’s this month’s edition of XAF Tips & Tricks. We hope it’s of value…
Interesting Support Tickets
Usability & Performance Enhancements
Documentation Updates
Simplified Permission Checks in Custom Code
We extended the SecurityStrategy class with numerous methods you can use to check if a user can perform CRUD operations: IsGrantedExtensions. For supplementary information, please review the following article: How to: Display a List of Users Allowed to Read an Object.
List View Data Access Modes
We have redesigned online documentation for the following important concepts and added comparison tables. We also fully documented our new ServerView and InstantFeedbackView modes.
Please let us know if this information is of value or if you feel we need to add additional content to help you select the appropriate mode for specific usage scenarios.
Simplified Access to Detail View Editors
You can now avoid ViewItem.ControlCreated and other event handlers for many common usage scenarios - simply use our DetailView.CustomizeViewItemControl method inside the OnActivated method to customize View item controls. You no longer need to unsubscribe from events or check whether controls are created. Please let us know your thoughts.
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Editors;
using DevExpress.XtraEditors;
// ...
public class SetMinValueController : ObjectViewController<DetailView, DemoTask> {
protected override void OnActivated() {
base.OnActivated();
View.CustomizeViewItemControl(this, SetMinValue);
}
private void SetMinValue(ViewItem viewItem) {
SpinEdit spinEdit = viewItem.Control as SpinEdit;
if (spinEdit != null) {
spinEdit.Properties.MinValue = 0;
}
}
}
Security System - New Code Example & KB Article
This GitHub repository demonstrates how to generate database updater code for security roles created via the application UI in a development environment. This KB article explains how to prevent deletion of the last active Administrator and the last administrative role with active users.
Need Faster Support Replies?
Once you create a new XAF ticket in the DevExpress Support Center and select XAF under the Platform/Product field, please review the following help links displayed above the Submit button. These links describe how you can collect callstacks, logs and other important diagnostic information for any .NET error. Once you collect/compile this information, forward it to us along with your support ticket. This information will ensure faster and more accurate replies from support.
