Dears ,
am trying to bind the pivot grid to xamdatachart
1- i would like to know how, i already did the binding of the pivot grid, but i dont know hot to bind it to xamdatachart.
2-i wrote the editing code as the samples, but no luck, i still cant edit the cells,
3- the columns header and row header are sorted alphabetically, i dont want them to be like that, i want them to be as the order of the list
4-i want to still be able to swap the columns and rows.
please find atatched the code.
any help will be appreciated
its urgent :S
Hi
First which version of control do you use: Silverlight or WPF. You posted your question in WPF forum, but you use Silverlight dll. Am I correct.
To your questions:
1. To able to see data chart series you should set also x-axis and y-axis. I did not see the code about this in attached sample. BTW how do you get follow namespace: xmlns:igWebChart="http://schemas.infragistics.com/xamWebChart"
2. To be able to edit cell you should add measure to EditableMeasure collection. I did not find code about this. I saw only remove from collection in your Measures_CollectionChanged event handler method.
3. This issue is revert back to normal in our last SR, so if you want this feature you should use latest SR of control.
4. There is a pivotGrid.DataSource.PivotGrid() method that you can use.
Regards,
Todor
As for the cell editing, i was checking the cell editing sample, and it only shows
this.pivotGrid.DataSource.Measures.CollectionChanged += Measures_CollectionChanged; this.pivotGrid.CellEdited += pivotGrid_CellEdited;
and nothing about adding measure to EditableMeasure collection, so how can i know about this stuff? is there is an example?
Thanks for ur reply
i am using silverlight datavisualization v11.1
this is the datachart code
<ig:XamDataChart x:Name="DataChart" Grid.Row="1" VerticalZoombarVisibility="Collapsed" HorizontalZoombarVisibility="Visible" HorizontalZoomable="True" VerticalZoomable="False" Height="500" WindowResponse="Immediate" DefaultInteraction="DragPan" Background="{x:Null}" CrosshairVisibility="Collapsed" Cursor="Hand" GridMode="BehindSeries" PlotAreaBackground="#e6def5"> <ig:XamDataChart.Axes> <ig:NumericYAxis x:Name="yAxis" /> <ig:CategoryXAxis x:Name="xAxis" ItemsSource="{Binding}" Label="{}{Date}"/> </ig:XamDataChart.Axes> <ig:XamDataChart.Series> </ig:XamDataChart.Series> </ig:XamDataChart>
I want to add the stacked fragments in the code behind.
var series = new StackedColumnSeries(); series.ItemsSource = ?????? series.XAxis = (CategoryXAxis)DataChart.Axes[1]; series.YAxis = (NumericYAxis)DataChart.Axes[0];
StackedFragmentSeries stackedFragment = new StackedFragmentSeries(); // creating the brands' graphs and assigning the values stackedFragment.Name = "" stackedFragment.Title = "" stackedFragment.ValueMemberPath =???????
where should i put it, the pivot grid is already binded to my xml, now i want to bind it to the datachart too.
I didnt get ur point, why is my columns and rows are sorted alphbatically
i want them to be in the same order as the binding.
Thanks