Hello,
I have a question about the LoadCustomization method. Why this method doesn't make visible column that are mentionned as visible in xml customization file but have been hidden using column selector panel of XamDataGrid ?
Has anyone an answer or a workaround to make hidden column visible ?
Jean
Good work, Jean. Thanks for following up. I'm glad you're past the issue.
SOLUTION :
Delete all former files that have been generated with a former version of Infragistics.
Generate them again.
All works fine with new files !
I have generated again customization files with new version.
I have clean all former files, and been careful new files replaced formers.
So now columns that have been hidden become visible whan I load customization file.
I am sorry because I told you that didn't work at all, but since I wasn't able to reproduce / find solution I redid all again.
Thank's for all your help.
Yes there is a difference :
For each unbound field, there is an additional markup parameter named extendedInfo. Its value seems to be the same containes in fieldList parameter of fieldLayout markup. I send to you a copy of my file
<?xml version="1.0" encoding="utf-8"?><xamDataPresenter version="10.2.20102.2001" formatVersion="1,6"> <fieldLayouts> <fieldLayout key="" fieldList="Date;DateTime;unbound;LogDate, NumComptage;String;unbound;MeterId, Libelle;String;unbound;MeterName, Type;String;unbound;MeterType, Message;String;unbound;ExtendedLabel, CodeMessage;String;unbound;Message.MessageCode, TypeMessage;String;unbound;Message.MessageType, TypeDefaut;String;unbound;CommunicationDefecType.DefectTypeLabel, Action;String;unbound;Action.ActionCode, Poste;String;unbound;Workstation.Name, Composant;String;unbound;ProcessName"> <fields> <field name="Date" extendedInfo="Date;DateTime;unbound;LogDate" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="NumComptage" extendedInfo="NumComptage;String;unbound;MeterId" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Libelle" extendedInfo="Libelle;String;unbound;MeterName" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Type" extendedInfo="Type;String;unbound;MeterType" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Message" extendedInfo="Message;String;unbound;ExtendedLabel" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="CodeMessage" extendedInfo="CodeMessage;String;unbound;Message.MessageCode" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="TypeMessage" extendedInfo="TypeMessage;String;unbound;Message.MessageType" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="TypeDefaut" extendedInfo="TypeDefaut;String;unbound;CommunicationDefecType.DefectTypeLabel" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Action" extendedInfo="Action;String;unbound;Action.ActionCode" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Poste" extendedInfo="Poste;String;unbound;Workstation.Name" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Composant" extendedInfo="Composant;String;unbound;ProcessName" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> </fields> <summaries> <SummaryDefinition SourceFieldName="Date" StringFormat="Nb de lignes = {0:0}" Calculator="Count" /> </summaries> </fieldLayout> <fieldLayout key="" fieldList="Date;DateTime;unbound;LogDate, NumComptage;String;unbound;MeterId, Libelle;String;unbound;MeterName, Type;String;unbound;MeterType, Message;String;unbound;ExtendedLabel, CodeMessage;String;unbound;Message.MessageCode, TypeMessage;String;unbound;Message.MessageType, TypeDefaut;String;unbound;CommunicationDefecType.DefectTypeLabel, Action;String;unbound;Action.ActionCode, Poste;String;unbound;Workstation.Name, Composant;String;unbound;ProcessName"> <fields> <field name="Date" extendedInfo="Date;DateTime;unbound;LogDate" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="NumComptage" extendedInfo="NumComptage;String;unbound;MeterId" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Libelle" extendedInfo="Libelle;String;unbound;MeterName" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Type" extendedInfo="Type;String;unbound;MeterType" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Message" extendedInfo="Message;String;unbound;ExtendedLabel" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="CodeMessage" extendedInfo="CodeMessage;String;unbound;Message.MessageCode" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="TypeMessage" extendedInfo="TypeMessage;String;unbound;Message.MessageType" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="TypeDefaut" extendedInfo="TypeDefaut;String;unbound;CommunicationDefecType.DefectTypeLabel" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Action" extendedInfo="Action;String;unbound;Action.ActionCode" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Poste" extendedInfo="Poste;String;unbound;Workstation.Name" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> <field name="Composant" extendedInfo="Composant;String;unbound;ProcessName" Visibility="Visible" IgnoreFieldVisibilityOverrides="false" /> </fields> <summaries> <SummaryDefinition SourceFieldName="Date" StringFormat="Nb de lignes = {0:0}" Calculator="Count" /> </summaries> </fieldLayout> </fieldLayouts></xamDataPresenter>
It appears too that filedLayouts is defined twice and I don't know why since i declare only one time filed layout in Xaml.
Is this helpful for you ?
Thank's for you're help.
Regards,
PS - I'm passing your comments from 8/31 and 9/2 to our engineers to see if anything you describe provides a possible clue to the cause.