Hi
I've implemented data virtualization technique from http://bea.stollnitz.com/blog/?p=411 sucessfully however binding the actual data in the datagrid is giving me problems. The actual data is wrapped in a data wrapper exposed as the Data property which i've tried binding in the DataGrid field but it doesn't work.
So far i've done:
Codebehind:
myDataGrid.DataContext = new AsyncVirtualizingCollection<Partner>(partnerProvider, 100, 5000);
xaml:
<igDP:XamDataGrid x:Name="myDataGrid" DataSource="{Binding}"> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="{Binding Data.Name1}"/> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts></igDP:XamDataGrid>
What am i doing wrong?
Hi Stefan,Thanks for your reply. I was aware of this link.
I wanted to ask the original user of this post 'mheusser'. Because in our scenario, we create columns(possibly dynamic list) at runtime. The column bindings are in code, and I unable to achieve it.
Hello Rajiv,
Here it is explained how the FieldLayouts are created and how you can define them:
http://es.infragistics.com/community/blogs/petar_monov/archive/2011/05/13/how-to-define-fieldlayouts-how-fieldlyouts-are-mapped.aspx
Hope this helps you.
Hi,Will you please share how were you able to bind Data.Name1 property in your code/xaml?
I am also trying to port my existing WPF DataGrid with XamDataGrid. I have the same data virtualization implemented like yours.
Awaiting your response.
Thank You.
Hi Infragistics gurus!
I am sure you people would have come across handling data virtualization or paging with XamDataGrid with grouping.
I am really looking for a solution badly. Will be grateful for your timely help.
Thanks,
Imad.
Hi mheusser/Infragistics gurus,
I am also planning to Data virtualization but my problem is that I have grouping as well in my xamDataGrid and my data also keeps on growing (meaning that data from DB keeps growing and it should be reflected in UI also).
What would be the besst approach to update UI with Live data and also have data virtualization.
Any ideas whould be much appreciated!