Is there an DataChange event for ChartSpace or any way to simulate this?

R

roger.camargo

I've been customizing the PivotTable to format the numbers and other
things also like getting the Dimensions and Levels that are visualized
on the PivotTable.
I use the DataChange Event after the Initializing the PivotObject.
I tried to do the same for a ChartSpace but first it doesn't have a
DataChange Event, so I tried using the InternalPivotTable object and
using its DataChange Event, but I get an exception because the
InternalPivotTable.

When this property has a value? is there any event to know this? I'm
guessin' that only if the ChartSpace is bounded to an external
datasource this property has a value, how can I know when this happens
so I can use its DataChange Event?

Or is there any other way to simulate it's DataChange Event?
 
R

roger.camargo

Testing a little bit more, the events on the InternalPivotTable
doesn't trigger.

I still can use it to track the Facts and Dimensions used on the
Chart, but I can't use its events?

What events I can use to track the changes on the Chart, like adding
dimensions to the Chart, or Facts, or Filtrating the dimensions.

And I'm also on the look for a way to change the format of the
numbers: The Axis NumberFormat, and the Number that apears as a
ToolTip on the series Data.
 
R

roger.camargo

OK, I think I manage to do it myself, what I did:
1. I added every event of the chartspace.
OBSERVATION: Some events didn't fire
2. I'd seen properties like: AllowLayoutEvents,
AllowPointRenderEvents, AllowRenderEvents, AllowScreenTipEvents,
EnableEvents and set it to true.
3. Test it again and the events did fire like I want it.

Well this is it.

Just in case anyone go through the same as me.
 
V

vapor

Thanks for posting. Some of these events only work when the pivot table is
bound to a datasource. For formatting, you can have a look at the
numberformat properties.

--
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top