Hi,
I've demo to senior managers tomorrow(telerik trial version!) so I hope to get an answer from telerik as soon as possible.
I'm having issues in databinding:
<DataTemplate x:Name="sparklineTemplate">
<telerik:RadAreaSparkline ShowAxis="False" Width="120" Height="40" Visibility="Visible" ItemsSource="{Binding DataPoints}" XValuePath="Key" YValuePath="Value" />
</DataTemplate>
But the trouble is, I don't have direct binding path but something like the following:
var bindingPath = string.Format("DataPoints[{0}]", date);
var bin = new Binding(bindingPath)
How do I represent same in DataTemplate?
Please note that my DataPoints is a dictionary : Dictionary<string,double>
so how do you bind to dictionary?
ItemsSource="{Binding DataPoints}" XValuePath="Key" YValuePath="Value"
Key & Value is not working!
I've demo to senior managers tomorrow(telerik trial version!) so I hope to get an answer from telerik as soon as possible.
I'm having issues in databinding:
<DataTemplate x:Name="sparklineTemplate">
<telerik:RadAreaSparkline ShowAxis="False" Width="120" Height="40" Visibility="Visible" ItemsSource="{Binding DataPoints}" XValuePath="Key" YValuePath="Value" />
</DataTemplate>
But the trouble is, I don't have direct binding path but something like the following:
var bindingPath = string.Format("DataPoints[{0}]", date);
var bin = new Binding(bindingPath)
How do I represent same in DataTemplate?
Please note that my DataPoints is a dictionary : Dictionary<string,double>
so how do you bind to dictionary?
ItemsSource="{Binding DataPoints}" XValuePath="Key" YValuePath="Value"
Key & Value is not working!