- Home
- Forum
- Windows Phone
- default Segmet in the ColumnSeries
default Segmet in the ColumnSeries
Hi Ahmad,
Thank you for using syncfusion products,
We have analyzed the requirement and currently we don’t have
a support for default segment selection at load time, however we have achieved
this requirement in work around manner, please find the sample in the below
location,
Please let us know if you have any further assistant.
Thanks.
Suresh S.
Attachment: ColumnChart_29d3d9a5.zip
Its works fine
Howerever when i try to change the SegmentSelectedIndex programmatically
i get a System.NullReferenceException
Hi Ahmad,
Sorry about the inconvenience caused.
We have analyzed the reported issue with our sample, but we are unable to reproduce the issue. Could you please revert us by modifying the sample based on your application along with the replication procedure or is it possible for you to share you stack trace details with us?
This would be helpful for us to serve you.
Regards,
Suresh S.
<local:CustomSelectableSeries x:Name="testChart" SegmentSelectionBrush="Aqua" EnableAnimation="True" Palette="None" ItemsSource="{Binding CategoricalDatas}" XBindingPath="Category" YBindingPath="Value" Label="First" ShowTooltip="False" chart:ChartTooltip.EnableAnimation="True">
when i try
testChart.SegmentSelectedIndex = 2;
it gives me the exception
Hi
Ahmad,
Sorry for the inconvenience caused.
We have analyzed the stated issue with your code snippet. This issue can be
fixed by accessing series from Chart as in below code snippet. Please let us know if you request further assistance on
this.
Code snippet [C#]:
(this.columnChart.Series[0] as CustomSelectableSeries).SegmentSelectedIndex
= 2;
Regards,
Suresh S.
- 5 Replies
- 2 Participants
-
AH ahmad0101
- Apr 3, 2014 08:34 AM UTC
- Apr 7, 2014 12:56 PM UTC