Hi!
I have two questions:
1. How do you Catch the Event that fires when hiding/showing the Data Slicer or the Data Selector? I know i can set the property Visibility = Collapse or Visible, but i cant get the event that tells me what state the Control is in after changing it from the GUI? It Always returns same value in code behind.
2. How do you dynamically set the Filter on a Filter Item from code behind? I can set the Rows,Column,Filters,Measures MDX filter string in the dataSource that drives the pivotGrid, but how can i manipulate the checkbox-filters that are included in these items? For example, i want only checkboxes to be check by a certain value-name. I want to be able to loop these checkbox filters and be able to set if they should be checked or not, and then reload the values.
Br
Hello Torgny,
On the second issue of setting the filters, there is an existing sample which demonstrates this. The sample can be found online at https://www.infragistics.com/samples/silverlight/pivot-grid/#/filtering in addition you may download the complete sample by downloading the samples for NetAdvantage for Silverlight 13.1.
As far as the first issue is concerned, I will need to know more about how you are showing / hiding the DataSlicer / DataSelector, are you using an expander?
Looking forward to hearing from you,
Sincerely,
Valerie
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
Were you able to resolve your issue?
Question nr 2 is all solved thanks to your sample code.
But still i have some problem to catch the event when "Expanding/Coallapsing" the DataSlicer module and DataSelector Module.
It is the little bar on the left side of each component that i want to catch the event for when executing a change.
/br
The problem with filter is solved, i created a new thread for my other problem.
br
It sounds as if you are using our expander control to show / hide data slicer / selector.
If this is the case you can bind the IsExpanded property and watch for changes in the underlying value:
<ig:Expander x:Name="Expander1" Grid.Column="1" IsExpanded="{Binding IsExpanded, Mode=TwoWay}" >
<ig:XamPivotDataSelector DataSource="{StaticResource DS}"/>
</ig:Expander>
Please let me know if you have any questions.