【发布时间】:2020-08-27 21:21:58
【问题描述】:
我有一个 .net 核心项目,它在 blazor 页面上包含一个报表查看器,我试图将它绑定到数据源但没有成功
<div style="width: 100%; margin: auto;">
<DxDocumentViewer ReportUrl="PatientPending" Height="800px" Width="100%" @ref="Report">
<DxDocumentViewerTabPanelSettings Width="180" />
</DxDocumentViewer>
</div>
这是我的数据源
[DisplayName("PatientPending")]
[HighlightedClass]
public class PatientPendingDataSource {
public PatientPendingDataSource() {
}
[HighlightedMember]
public IEnumerable<Patient> GetData() {
return new List<Patient> {
new Patient {
Id = 5
},
new Patient {
Id = 6
},
};
}
}
此报告的数据源是 typeof(PatientPendingDataSource) 和“GetData”的数据成员我在 GetData 方法上设置了一个断点,但它从未到达,我做错了什么?
【问题讨论】:
标签: devexpress reporting blazor