I have been trying to bind Dynamic data with Infragistics SL5 grid, by using the ICustomTypeProvider interface exposed in SL5 and following the approach mentioned in url - http://blogs.msdn.com/b/eternalcoding/archive/2011/04/26/dynamic-properties-in-silverlight-5.aspx
This seems to work fine for SL5 data grid, but unfortunately Infragistics SL5 grid doesn't seems to support that. Infragistics grid is not querying the GetCustomType method of ICustomTypeProvider, to get the properties information at runtime.
Please let me know if I am missing anything OR is this still an open requirement with Infragistics SL 5 suite.
I have tried this on latest Infragistics SL5 12.1 Release as well, but its still the same.
Hi Stefan,
I understand that you have a workaround, but I think the more interesting question is this:
Does Infragistics have any plans to correctly support ICustomTypeProvider?
Hello,
I have been looking into your requirement and I can say that you are not able to define ItemSource for the UnboundColumn, but you can manually add UnboundColumns during RunTime and set their Key Property, which will map them to the referring Property from the underlying Object, which seems to be the best way to achieve your goal. You can add the UnboundColumns to the XamGrid’s Columns Collection.
Hope this helps you.
Just adding to the previous post, is it possible to define an itemsource for all UnboundColumns in infragistics grid.
I know it may sound silly, but its a requirement..
Well, the problem with the approach you have mentioned in your sample is that you define the binding explicitly in xaml using UnboundColumn.
In my case, I dont know how many and which properties will be available for UI display, so I can't have a static binding using UnboundColumn.
Hello again,
Did you have chnace to look into the sample I attached in my previous post? I followed the approach from the link you provided and the XamGrid displayed the object.
Looking forward for your reply.