Jump to content
Software FX Community

Problems with PersonalizedFlags


User (Legacy)

Recommended Posts

Posted

Hi,

I got a problem with the PersonalizedFlags property in chartfx. When I

set this property to:

SoftwareFX.ChartFX.PersonalizedFlags.AutoLoad Or

SoftwareFX.ChartFX.PersonalizedFlags.AutoSave

everything works fine until I bind one or more series to the secondary Y

-axis with the "SoftwareFX.ChartFX.YAxis.Secondary" statement. I don't

think the changes I make to the chart programmically is saved, and when

the chart is reloaded it loads the "old" personalization wiht only one

Y-axis.

If I change the PersonalizedFlags property to:

SoftwareFX.ChartFX.PersonalizedFlags.None

everything works fine.

Can you please help me?

Regards, Fosco

Attachments.zip

Attachments.zip

Posted

Personalization settings don't contain all the properties in the Chart.

Since assigning a secondary Y-Axis to a series is not part of the End-User

UI, these settings are not saved by default.

You can control what gets saved into the personalization file by using the

TemplateMask property. By default this property is set to FileMask.Template

which contains: FileMask.Genera, FileMask.Fonts and FileMask.Colors, you

need to add FileMask.Multi to save per-series attributes such as Y-Axis and

FileMask.Scale if you want to save axis settings (Min, Max, Format, etc.) as

well.

--

FP

Software FX

Posted

That was fast. I'll try it out.

Thanks

SoftwareFX Support wrote:

> Personalization settings don't contain all the properties in the Chart.

>

> Since assigning a secondary Y-Axis to a series is not part of the End-User

> UI, these settings are not saved by default.

>

> You can control what gets saved into the personalization file by using the

> TemplateMask property. By default this property is set to FileMask.Template

> which contains: FileMask.Genera, FileMask.Fonts and FileMask.Colors, you

> need to add FileMask.Multi to save per-series attributes such as Y-Axis and

> FileMask.Scale if you want to save axis settings (Min, Max, Format, etc.) as

> well.

>

Posted

Exactly how should I do this?

I just get a 'Missing license tag' message when I try to add

FileMask.Multi and/or FileMask.scale

SoftwareFX Support wrote:

> Personalization settings don't contain all the properties in the Chart.

>

> Since assigning a secondary Y-Axis to a series is not part of the End-User

> UI, these settings are not saved by default.

>

> You can control what gets saved into the personalization file by using the

> TemplateMask property. By default this property is set to FileMask.Template

> which contains: FileMask.Genera, FileMask.Fonts and FileMask.Colors, you

> need to add FileMask.Multi to save per-series attributes such as Y-Axis and

> FileMask.Scale if you want to save axis settings (Min, Max, Format, etc.) as

> well.

>

Posted

SoftwareFX Support wrote:

> What's your code ?

>

Sorry my fault. Test data messed things up. But I have another question.

I have this code in my page_load sub method:

WebChart1.PersonalizedFlags =

SoftwareFX.ChartFX.PersonalizedFlags.AutoLoad And

SoftwareFX.ChartFX.PersonalizedFlags.AutoSave Or

SoftwareFX.ChartFX.PersonalizedFlags.EnableRestore

For some reason the "restore defaults" option is disabled. Can you tell

me what I have to do to get i back on.

Thanks

Fosco

Posted

WebChart1.PersonalizedFlags =

SoftwareFX.ChartFX.PersonalizedFlags.AutoLoad And

SoftwareFX.ChartFX.PersonalizedFlags.AutoSave Or

SoftwareFX.ChartFX.PersonalizedFlags.EnableRestore

Is wrong, you must combine all flags you want with an OR:

WebChart1.PersonalizedFlags =

SoftwareFX.ChartFX.PersonalizedFlags.AutoLoad Or

SoftwareFX.ChartFX.PersonalizedFlags.AutoSave Or

SoftwareFX.ChartFX.PersonalizedFlags.EnableRestore

--

FP

Software FX

Posted

SoftwareFX Support wrote:

> WebChart1.PersonalizedFlags =

> SoftwareFX.ChartFX.PersonalizedFlags.AutoLoad And

> SoftwareFX.ChartFX.PersonalizedFlags.AutoSave Or

> SoftwareFX.ChartFX.PersonalizedFlags.EnableRestore

>

>

> Is wrong, you must combine all flags you want with an OR:

>

> WebChart1.PersonalizedFlags =

> SoftwareFX.ChartFX.PersonalizedFlags.AutoLoad Or

> SoftwareFX.ChartFX.PersonalizedFlags.AutoSave Or

> SoftwareFX.ChartFX.PersonalizedFlags.EnableRestore

>

This doesn't help. Is it possible that I can have set this property som

other place?

Fosco

Posted

The restore will only be enabled if you previously saved.

In the Web Forms version, SoftwareFX.ChartFX.PersonalizedFlags.AutoSave is

ignored as the chart control doesn't get notified when the page in the

browser is closed. The chart needs to be saved from the personalization

menu.

--

FP

Software FX

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...