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.
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well. Also after some research Ability to bind to Dynamic Data has been determine as a new Product Idea. I have sent your Product Idea directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this Product Idea is PI12070044
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
I can suggest you use this approach till the Product Idea gets implemented.
Hmmm.
The workaround does not seem to work. I am adding unbound columns with the Key set, but the value never displays :(
The one unbound column I set with a normal property works fine.
Ok I got this to work from code...messy.
1) Add the unbound column with the Key set.
2) Create a datatemplate in code that binds to the property.
3) Assign the datatemplate to the unbound column
4) In my case I have a default unnamed datatemplate in xaml for the datatype, the runtime resource locates this datatemplate.
The code to create the data template is: ( I am still expiermenting to see if I can refer to existing datatemplates using StaticResource...)
private DataTemplate TemplateForResult(string prop)
{
const string basetemp = @"<DataTemplate xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" " +
@"xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">"+
@"<ContentPresenter Content=""{Binding RowData.[PROPERTY]}""/> "+
@"</DataTemplate>";
var final = basetemp.Replace("[PROPERTY]", prop);
return (DataTemplate) XamlReader.Load(final);
}
Point taken, and supported as well.
Infact, I was surprised that this was not supported at the first place, considering the fact that Microsoft Silverlight Grid supports that interface seamlessly.
I don't really see the need for a feature request. ICustomTypeProvider is now part of standard binding in Silverlight. Infragistics can either support it or become increasing irrelevant.
From their current success I doubt they will make a choice that leads to their decline.
The support for ICustomTypeProvider will make our lives lot easier.
Infact, I was also thinking if we could log a new feature request in Infragistics roadmap, if there's no such plan already?