This question is locked. New answers and comments are not allowed.
Hello,
First of all I would like to congratulate Telerik on launching the JustCode tool. I have started using it today at work and it seems to be extremely valuable.
I am experiencing problems with exporting of GridView to Html format.
I am setting my grid's ItemsSource to an ObservableCollection:
Some of the columns have xaml binding like this:
and when I export this GridView to Html the data is displayed properly.
Other columns use binding on the whole data row object like this:
In this case, since I do not provide the UniqueName property, the binding is done on the whole row object of type PartnerStatsEntry, instead of just one of its properties as it was the case in the previous snippet. The WholeObjectConverter returns a string value that is a function of more than one property the PartnerStatsEntry class. The proper value is displayed in the grid.
However, when I export the GridView to Html, all I get for these cells is just the name of the binding object (PartnerStatsEntry) and not the converted value as I would wish.
Is there a way to solve this problem or go around it somehow?
Best regards, Przemek
First of all I would like to congratulate Telerik on launching the JustCode tool. I have started using it today at work and it seems to be extremely valuable.
I am experiencing problems with exporting of GridView to Html format.
I am setting my grid's ItemsSource to an ObservableCollection:
| ObservableCollection<PartnerStatsEntry> AllStatsForPartner = new ObservableCollection<PartnerStatsEntry>(); |
| gridPerformance.ItemsSource = AllStatsForPartner; |
Some of the columns have xaml binding like this:
| <Controls:GridViewDataColumn DataMemberBinding="{Binding Converter = {StaticResource PartnerAgeConverter}}" UniqueName="partnerAge" /> |
and when I export this GridView to Html the data is displayed properly.
Other columns use binding on the whole data row object like this:
| <Controls:GridViewDataColumn DataMemberBinding="{Binding Converter={StaticResource WholeObjectConverter}}" /> |
In this case, since I do not provide the UniqueName property, the binding is done on the whole row object of type PartnerStatsEntry, instead of just one of its properties as it was the case in the previous snippet. The WholeObjectConverter returns a string value that is a function of more than one property the PartnerStatsEntry class. The proper value is displayed in the grid.
However, when I export the GridView to Html, all I get for these cells is just the name of the binding object (PartnerStatsEntry) and not the converted value as I would wish.
Is there a way to solve this problem or go around it somehow?
Best regards, Przemek