Hi Team,
I am showing charts in Listbox. I have placed RadChart Control in Itemplate. its not binding the ChartData and SeriesDefinition property. These property has value and preperty get is also called . But still its not showing series, saying "No data Series". On the other side, ChartTitle property is bound and showing chart title.
Please see this issue and send any sample.
Thanks in adavance..
Regards,
Nidhi
XAMl code attached
<ListBox Grid.Column=
"0"
ItemsSource=
"{Binding DrillDownChart}"
>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<toolKit:WrapPanel Orientation=
"Horizontal"
HorizontalAlignment=
"Center"
VerticalAlignment=
"Stretch"
>
</toolKit:WrapPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate >
<DataTemplate>
<Grid Width=
"110"
Height=
"114"
>
<Grid.RowDefinitions>
<RowDefinition Height=
"*"
/>
<RowDefinition Height=
"Auto"
/>
</Grid.RowDefinitions>
<Border Grid.Row=
"0"
>
<telerik:RadChart ItemsSource=
"{Binding ChartData}"
SeriesMappings=
"{Binding ChartSeriesMappings}"
>
<telerik:RadChart.DefaultView>
<telerik:ChartDefaultView ChartLegendPosition=
"Right"
>
<telerik:ChartDefaultView.ChartTitle>
<telerik:ChartTitle Content=
"{Binding ChartTitle}"
/>
</telerik:ChartDefaultView.ChartTitle>
<telerik:ChartDefaultView.ChartArea>
<telerik:ChartArea LabelFormatBehavior=
"None"
SmartLabelsEnabled=
"True"
>
</telerik:ChartArea>
</telerik:ChartDefaultView.ChartArea>
<telerik:ChartDefaultView.ChartLegend>
<telerik:ChartLegend Name=
"ChartLegend"
LegendItemMarkerShape=
"Triangle"
/>
</telerik:ChartDefaultView.ChartLegend>
</telerik:ChartDefaultView>
</telerik:RadChart.DefaultView>
</telerik:RadChart>
</Border>
<TextBlock Text=
"{Binding ChartTitle}"
Grid.Row=
"1"
/>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
private void btnNext_Click(object sender, RoutedEventArgs e)
{
SetScrollPosition();
BindData();
RestoreScrollPosition();
}
private void SetScrollPosition()
{
GridViewScrollViewer svSummaryInfo = (GridViewScrollViewer)rtSummaryInfo.FindChildByType<GridViewScrollViewer>();
_dbVerticalOffset = svSummaryInfo.VerticalOffset;
_dbHorizontalOffset = svSummaryInfo.HorizontalOffset;
}
private
void RestoreScrollPosition()
{
GridViewScrollViewer
svSummaryInfo = (GridViewScrollViewer)rtSummaryInfo.FindChildByType<GridViewScrollViewer>();
if (svSummaryInfo != null)
{
svSummaryInfo.ScrollToHorizontalOffset(_dbHorizontalOffset);
svSummaryInfo.ScrollToVerticalOffset(_dbVerticalOffset);
}
}
Please provide a code snippet for the same.
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
System.ComponentModel.DataAnnotations;
namespace
namespace
{
public
class
dummy
{
[Display(AutoGenerateFilter =
false
)]
public
string
Name
{
get
;
set
;
}
[Display(ShortName =
"Company's Name"
)]
public
string
CompanyName
{
get
;
set
;
}
public
string
Title
{
get
;
set
;
}
}
}
Hello,
the ToolTip text "Start dragging in order to change items' position" is not translated in german culture.
OutlookBar_style.xaml:
...
<
ToolTipService.ToolTip
>
<
TextBlock
Text
=
"Start dragging in order to change items' position"
telerik:LocalizationManager.ResourceKey
=
"OutlookBarHorizontalSplitter"
/>
</
ToolTipService.ToolTip
>
...
As workaround I tried to set the ToolTip-Text by setting the HorizontalSplitterStyle like this:
...
<
UserControl.Resources
>
<
Style
x:Name
=
"OutlookBarHorizontalSplitter"
TargetType
=
"Thumb"
>
<
Setter
Property
=
"ToolTip"
Value
=
"My localized Text"
/>
</
Style
>
</
UserControl.Resources
>
<
Grid
>
<
telerik:RadOutlookBar
x:Name
=
"MenuOutlookBar"
HorizontalSplitterStyle
=
"{DynamicResource OutlookBarHorizontalSplitter}"
>
...
Unfortuately after this the whole Style of the HorizontalSplitter is lost and the Tooltip is still default.
Please let me know if there is a solution for this issue.
Regards
Rainer