Hi!
The DocxFormatProvider resets any Color informations of any Styles to the default light blue when I export with it.
I export like this:
DocumentFormatProviderBase format = null; format = new DocxFormatProvider(); format.Export(radRichTextBox.Document, File.Open(filename, FileMode.Create));
I used versions 2015.3.1104.45, 2015.3.1104.40 and 2015.3.930.40
Did i miss some setting or, if not, is there any workaround?
It works fine with the htmlformatprovider, but i need the header and footer, which is cut off by it.
Hello.
I am experiencing a problem with RadDatePicker
In my application, the user chooses Start date and End date and according to that, the grid is updated.
I would like to avoid using Refresh button, i.e. letting the user pick both dates and then click refresh to get the data.
On the other hand, I don't want to update the data each time one of the Pickers is changed, before the second one is also picked.
I would like to do it this way: when user picks one of the dates, the second DatePicker expands for him so he can immediately choose a second date, and no need to click a refresh button. What happens is that DatePicker.IsDropDownOpen property seems not working from code behind.
In DatePicker1 SelectionChanged event handler, I am doing DatePicker2.IsDropDownOpen=true, but this doesn't work. The DatePicker2 stays closed.
Maybe there is another control, like doubleDatePicker which makes it possible to choose a range of dates? Like in CheckIn-Checkout pages on the internet, the datepicker control consists of 2 calendars.
Thanks in advance for your help.
Alexander
Hello,
I have a telerik radGridView that itemsSource binding to my list observableCollection<Class1>
i have a button that on her click event i i add a new item to my list, i want focus the new item first cell,
so i want do it with the event AddingNewDataItem but it not camming to this event.
heer is my xaml code:
<Grid>
<telerik:RadGridView x:Name="PricingGrid" ItemsSource="{Binding}"
CanUserInsertRows="True" ShowInsertRow="True"
AddingNewDataItem="PricingGrid_AddingNewDataItem"
RowEditEnded="PricingGrid_RowEditEnded" >
</telerik:RadGridView>
<Button Content="Button" HorizontalAlignment="Left" Height="61" Margin="269,237,0,0" VerticalAlignment="Top" Width="176" Click="Button_Click"/>
</Grid>
heer is my C# code:
public partial class MainWindow : Window
{
public CollectionViewSource Source { get; set; }
public ObservableCollection<MyClass> list = new ObservableCollection<MyClass>();
public MainWindow()
{
InitializeComponent();
this.Source = new CollectionViewSource();
//var list = new ObservableCollection<MyClass>();
for (int i = 0; i < 10; i++)
{
var item = new MyClass { MyProp2 = i, MyProperty = i * 10 };
list.Add(item);
}
Source.Source = list;
this.DataContext = Source.View;
}
private void PricingGrid_RowEditEnded(object sender, Telerik.Windows.Controls.GridViewRowEditEndedEventArgs e)
{
if (e.EditOperationType == Telerik.Windows.Controls.GridView.GridViewEditOperationType.Insert)
{
this.DataContext = Source.View.OfType<MyClass>().OrderBy(c => c.MyProperty);
Source.Source = this.DataContext;
PricingGrid.SelectedItem = e.NewData;
PricingGrid.ScrollIntoView(e.NewData);
}
}
private void Button_Click(object sender, RoutedEventArgs e)
{
list.Add(new MyClass { MyProp2 = 4, MyProperty = 40 });
}
private void PricingGrid_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
{
}
}
public class MyClass
{
public int MyProperty { get; set; }
public int MyProp2 { get; set; }
}
thank for help!
miri.
Hello,
I'm using the RadImageEditor control in a WPF application using the Office2013 theme.
With ScaleFactor at 0, there is a margin around the image and it is not aligned with the orther controls.
With another scale factor, the scroll bars are out by one pixel: the top of the image is one pixel lower than the vertical scroll bar and the left of the image is one pixel at the right of the horizontal scroll bar.
DocumentPosition pos =
new
DocumentPosition(
this
.radRichTextBox.Document.CaretPosition);
pos.MoveToCurrentWordStart();
this
.radRichTextBox.Document.Selection.SetSelectionStart(pos);
pos.MoveToCurrentWordEnd();
this
.radRichTextBox.Document.Selection.AddSelectionEnd(pos);
Hi guys, my project is C# language, and WPF architecture.
I am having the issue of loading the page of the Richtextbox which take around 15 seconds to completely load the page. So, I insert the code as follow(picture is attached in this post): RadCompositionInitializer.Catalog = new TypeCatalog(typeof(HtmlFormatProvider), typeof(TxtFormatProvider),typeof()Hyperlink),typeof(IInsertHyperlinkDialog));
The page taken around 4 seconds to load and eventually solve my problem, but whenever I click the hyperlink button, the hyperlink dialog didnt show up. While the other function like font size, insert picture dialog, bold..italy... all is working well except the hyperlink dialog.
If I erase the new added code , the hyperlink dialog will prompt up but it took about 15 seconds again to load the entire page(background main page as the picture attached).
Quality Assurance reject my work as it took too long to load the page.
May I know how to prompt up the hyperlink dialog and also used less time to load the entire page?
Thanks.