public class SalesInfo{ public string Employee { get; set; } public DateTime Time { get; set; } public int Value { get; set; }}data = new RadObservableCollection<SalesInfo>(data.OrderBy(x => x.Time));Color dataColor = colorArray[loopCounter % 4];LineSeries line = new LineSeries();line.Stroke = new SolidColorBrush(dataColor);line.StrokeThickness = 2;line.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "Time" };line.ValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Value" };line.ItemsSource = data;var tbiTemplate = this.Resources["theTemplate"] as DataTemplate;line.TrackBallInfoTemplate = tbiTemplate;activitiesAddedChart.Series.Add(line);<DataTemplate x:Key="theTemplate"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding DataPoint.SalesInfo.Employee}" /> <TextBlock Text=": " /> <TextBlock Text="{Binding DataPoint.Value}" /> </StackPanel></DataTemplate>1.In the radrichtextbox , setting the page number, from 1 to N, it could be shown in the radrichtextbox correctly, but when calling window's printing function, all the pages's number is 1.
2.How to transter the Landscape of PrintDialog to the RadRichTectBox.
public Content() { // Get the labels from database ContextSource.Labels = DictionaryFromDatabase(); // Get grid data from database ContextSource.DataSrc = DataTableFromDatabase(); Listing.DataContext = ContextSource; } public class ContextSource { public DataTable DataSrc { get; set; } public Dictionary<string, string> Labels { get; set; } public ContextSource() { DataSrc = new DataTable(); Labels = new Dictionary<string, string>; } }<telerik:RadGridView Margin="0" AreRowDetailsFrozen="True" AutoGenerateColumns="False" CanUserFreezeColumns="False" IsReadOnly="True" ItemsSource="{Binding}" SelectionMode="Single" ShowInsertRow="False" x:Name="Listing"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="{Binding Labels.[str_label0]}" DataMemberBinding="{Binding Path=DataSrc.[columnname0]}"/> <telerik:GridViewDataColumn Header="{Binding Labels.[str_label1]}" DataMemberBinding="{Binding Path=DataSrc.[columnname1]}"/> <telerik:GridViewDataColumn Header="{Binding Labels.[str_label2]}" DataMemberBinding="{Binding Path=DataSrc.[columnname2]}"/> </telerik:RadGridView.Columns> </telerik:RadGridView>Listing.DataContext = ContextSource.DataSrc;Hi,
I use the last (Q3 2012) version of WPF controls. And I noticed that it can't get multilevel list (1.-1.1-1.1.1. for example) as it would be expected. The indent buttons behavior also doesn't work properly.
I would appreciate your advice or comments.
Igor
Hi,
The scenerio we are working on:
The problem is, when User B opens the document, application does not have the User A's MergeFieldSource. So when application merge fields, it updates both "Subject" and "Signed" MergeFields.
I've tried couple of solutions, one with RadRichTextBox.MergeFieldToStringConverting event and one with inheriting MergeField.
In RadRichTextBox.MergeFieldToStringConverting solution, MergeFieldToStringConvertingEventArgs doesn't have the old/original value (before merging). If it was, I could pass the old value to the "Subject" MergeField when User B updates the document.
In CustomField implementation, I could have find a solution, if there were a functionality like; when protected override DocumentFragment GetResultFragment() method returns null, corresponding MergeField does not updates it's own value. But there is no such a functionality.
One another solution could be, enumerating the MergeFields in the document and update only the required ones. (This is possible in Office Word API). But I couldn't find a way to achieve the is with RadRichTextBox.
I've added a sample solution demonstrating the scenerio. (Using Telerik version 2012.3.1017.45)
Regards.