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://es.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
I finally became closer.... I changed the ViewModel's method returning an IEnumerable to a property returning an ObservableCollection, and I'm getting data in the report now. I still think a MVVM sample would still benefit some of us though.
Hello and thank you for posting!
I am glad that you have managed to get closer to the functionality you need. You may have a look at our online samples here: http://es.infragistics.com/products/reporting/features/data-connectivity. If you need assistance or you have any questions, you can always ask in the forums or create a support ticket.