[DevExpress Support Team: CLONED FROM T604959: How to log Export and Print Preview Actions by the Audit Trail module]
i have controller with popupaction
where I want display audit records for current object::
C#private void popupWindowAuditKlienci_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e)
{
ListView lv = Application.CreateListView(Application.CreateObjectSpace(typeof(AuditDataItemPersistent)), typeof(AuditDataItemPersistent), true);
GroupOperator criteria = new GroupOperator(GroupOperatorType.And);
criteria.Operands.Add(new BinaryOperator("AuditedObject.TargetType", ((XPObjectSpace)ObjectSpace).Session.GetObjectType(View.CurrentObject)));
criteria.Operands.Add(new BinaryOperator("AuditedObject.TargetKey", XPWeakReference.KeyToString(ObjectSpace.GetKeyValue(View.CurrentObject))));
lv.CollectionSource.Criteria["ByTargetObject"] = criteria;
e.View = lv;
}
…and when I run this I get list f audit entries, but I can't export this list to excel or pdf like on standard listView