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
2430
Saving Display Layout (parameter question)
posted

Grid.DisplayLayout.SaveAsXml - PropertyCategory

I have been using PropertyCategory.All but that is producing 2 issues that I would like resolved:

When I add or remove a column in the code, it still shows the old columns in ShowColumnChooser.  I would like to retain the visible column position and list of visible columns from ShowColumnChooser but I would like to have any new columns / bands that are added or removed to show up in the ShowColumnChooser.  So basically, I want to retain the existing column information (size, position, visiblility, etc.) but also get the new information (I wouldn't mind if the new columns were hidden but they do show up under the column chooser for the user to add).

I also don't want to retain appearances (aka I want the information like background color to come from the code).

What PropertyCategory do I need to use?

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    I'm having trouble understanding your questions.

    If you add a column to the grid, the ColumnChooser should show those columns. If they are not showing up, then something is wrong. There is a property on the column called ExcludeFromColumnChooser. If you set this property to true, then the column is explicitly not shown in the ColumnChooser. But as long as you do not set this property, the column should display. If it's not, then it's a bug.

    haessd said:
    I also don't want to retain appearances (aka I want the information like background color to come from the code).

    What appearances are you referring to? All of them?

    I don't beleive it's possible to load a layout without applying the appearances. You can choose not to save the AppearancesCollection, but that only help if all of your appearances are coming from that collection.

     

Children