Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
375
XamDataGrid Saving and Loading Customzation of Dynamic Columns
posted

Hi,

We are developing an application where we are facing following scenario.

Scenario:
A XamDataGrid is showning columns that are generated at runtime. These columns informations are fetched from serivces.

What is Required:
We need to save the grid filter that are applied on filter change event.

Solution for mentioned issue:
We are saving grid settings using SaveCustomization and load the saved filter using LoadCustomization methods.

Issues with proposed solution:
As the column are customized [fetched from services and there sort ordert too], so the position could change frequently or new column could be added or remove existing column dynamically. If the any column is removed or added LoadCustomization didn't apply the on the grid even if that specific column is not positioned, added or removed. Even if the same filter is applied with changing, adding or removing any column the new content for xml is appended to old setting content. Which lead us into increase the size of xml content, So the another issue is that the size of xml content increase with time.

Here is the link that is related to issue this issue that was asked in the start of year 2016.
http://es.infragistics.com/community/forums/t/104871.aspx

Sample Project:

Sample project is attached.

Instructions for Sample Project:

First run the project and filter the data. Then close the application and comment the email property in Employee Model. Run the application again. The filter will not be applied.

Is there any proper solution from infragistics to handle this issue or should we resolve it manually?

Regards

GridCustomization.zip
  • 2151
    Verified Answer
    Offline posted

    Hello Gottfried,

     

    Unfortunately there are no changes made in the behavior of saving and loading of the xamDataGrid’s customizations feature. Basically the Save and Load Field Customization feature is designed to save and load end user’s customizations as written in this topic:

    http://help.infragistics.com/doc/WPF?page=xamDataPresenter_Save_Field_Customizations.html

     

    There are no suggestion I can give you except the one proposed in the thread you already mentioned. Also as mentioned in the other thread you can place this as a new product idea at http://ideas.infragistics.com. This site places you in direct communication with our product management teams who plan and prioritize new features and products based on community and user feedback.

     

    Please let me know if you have any other questions on this matter.

     

    Sincerely,

    Radko

    Senior Software Developer