Binding array and summary problem

Hello,

i would like to ask for help with binding array to columns. I attach a sample of very easy datagrid with model class, where i need one property only, and this property must be dictionary. I know, how i bind and online update change on classic properties, but in project, which i have now, i need work with dictionary as a property.

Problem is, i do not update summary with binding array. And after online change AA or AB, column AC (which is AA + AB) don't change as well. Can you please help anyone with this problem and preserve dictionary as major property for datagrid? Thank you

Attachment: wpf_sample_fe2f1a33.zip

2 Replies

GT Gnanasownthari Thirugnanam Syncfusion Team January 7, 2018 10:47 AM UTC

Hi Martin, 

We are able to reproduce the reported TableSummary issue with the given application when we use the Dictionary as business object in SfDataGrid. In our implementation, we have missed to consider the TableSummary value calculation when the column values are retrieved from the Dictionary, causes the reported issue. We will consider to implement the TableSummary calculation when the business object is defined as Dictionary and this fix will be included in our 2018 Volume 1 release. At the moment, you can use the double type as business object and we have modified your application for the same to get this issue fixed. Please find the modified sample from the below link

Sample link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/SfDataGridDemo-1296507881 

Regards, 
 



GT Gnanasownthari Thirugnanam Syncfusion Team January 19, 2018 06:07 AM UTC

Hi Martin, 
 
Our development team analyzed and the issue can be resolved by setting a property in sample level. Please find the details below, 
 
You can calculate the Summary value and perform the sorting, grouping and filtering operation while binding the dictionary by setting UseBindingValue property as true for GridColumn like in the below code example. Because dictionary’s can’t be retrieved using reflection, so requesting you to set UseBindingValue where reflection performed using Binding.  
 
<Syncfusion:SfDataGrid.Columns> 
    <Syncfusion:GridNumericColumn MappingName="[AA]" UseBindingValue="True"/> 
    <Syncfusion:GridNumericColumn MappingName="[AB]" UseBindingValue="True"/> 
    <Syncfusion:GridNumericColumn MappingName="[AC]" UseBindingValue="True"/> 
</Syncfusion:SfDataGrid.Columns> 
 
We have modified the sample for resolve the problem, you can download it from below mentioned location. 
 
 
Please refer the below UG link for more details. 
 
Regards, 
Gnanasownthari T. 


Loader.
Up arrow icon