Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1118
Any MVVM samples?
posted

Using 2014.1, and it's my 1st attempt with XamReport, and it is a client side report

Does Infragistics have any working MVVM samples binding to objects online for us? I'm missing something, and I lack a working model as a reference point.

I'm using the following URLs as my guide:

http://www.infragistics.com/community/forums/t/71435.aspx

http://help.infragistics.com/Doc/reporting/2012.1/CLR4.0?page=Using%20the%20XAML%20Report%20Viewer.htm

http://help.infragistics.com/Doc/reporting/2012.1/CLR4.0?page=Using%20the%20XAML%20Report%20Viewer.html

There's 1 report, seems to be wired up OK, and it's bound to a method (not a property returning an ObservableCollection like I'm most familiar with using MVVM) returning IEnumerable with 100 rows or so of data. The data's  there. To double check myself, I've also bound the ReportProcessingRequested event to code behind and confirmed the collection is populated and it is. However, the XamReportViewer keeps throwing "The target data source Whatever has been set to null". The ItemsSource is bound to the IEnumerable method in the ViewModel (method not property).

Is there a basic working model using WPF, MVVM, XamReportViewer & binding to a collection of objects? I know I'm obviously missing a something, somewhere.

I'm sure I'm probably not the only 1 with a similar question which is why I'm posting here rather than opening a ticket

thanks