My application has a RadRichTextBox to collect styled text from users, working great. The RadRichTextBox has an associated HtmlDataProvider and I'm storing the Html property as a string value on a Message view model. However, in another area of my application, I want to load and display the text entered in this RadRichTextBox as plain text, as a property on a different view model, unrelated to the original Message view model, without any styling added by the user. Is there a way to accomplish this without storing a second string property on the Message view model, i.e. is there a way to remove the html markup from the MessageText property?
The RadRichTextBox definition and associated HtmlDataProvider:
<
telerik:HtmlDataProvider
x:Name
=
"HtmlProvider"
RichTextBox
=
"{Binding ElementName=htmlRichTextBox}"
Html
=
"{Binding MessageText, Mode=TwoWay}"
/>
<
telerik:RadRichTextBox
x:Name
=
"htmlRichTextBox"
IsSpellCheckingEnabled
=
"False"
Height
=
"300"
/>
I am tracking changes on a WPF RadRichtextBox so that I can see what changes a user has made, so that they can be approved by a supervisor later on. I don't want the first user to see the change tracking.
Is there a way that I can remove the ability for that user to accept their own changes. Currently they can change the document, accept the change and there is no indication that they have changed anything.
I'm also looking to remove the visual indications of changes to the basic user. I have set Insert.Decoration = None and same for Delete.Decoration. But I am still getting tooltips with the revision details when the mouse is over the change.
Thanks
Hello,
I have an unexpected behavior with the TileView.
The behavior occurs when MinimizedItemsPosition is Top or Bottom. Maximizing the first item is all okay. If you maximize another item, one minimized item is no longer displayed. You can understand this in your WPF demos (TileView Examples, Docking) and the pictures.
Hi
I am using ChartView for visualizing some data.
The data is a list of doubles and strings. The string is a category and the double is a value.
The data is shown as points – and it works fine (see attached image)
Vertical axis is a LinearAxis.
Horizontal axis is a CategoricalAxis.
The series is a PointSeries.
I now want to use the trackball feature to highlight the point closest to the mouse. I have used this feature before on non-categorical axis and it worked fine. But in this case only one point for each category gets highlighted. The point highlightet is always the first point in the list in each category.
Do you have any idea what is wrong?
/Flemming Rosenbrandt
I have a class inheriting from RadWindow called ColorEditor expected to be shown by the following code from within a response to a color picker face click from another RadWindow:
private void EditFaceColor_Click(object sender, RoutedEventArgs e) {
var source = sender as FrameworkElement;
var font = DataContext as FontModel;
if (font == null) return;
var colorEditor = new ColorEditor
{
Alpha = false,
InitialColor = Color.FromArgb(font.Face.Color.A, font.Face.Color.R, font.Face.Color.G, font.Face.Color.B)
};
var initialColor = font.Face.Color;
colorEditor.DataContext = font.Face;
if (source != null)
{
var loc = source.PointToScreen(new Point(0, 0));
colorEditor.Left = loc.X;
colorEditor.Top = loc.Y;
}
colorEditor.Owner = this;
colorEditor.ShowDialog();
if (colorEditor.DialogResult != true)
{
font.Face.Color = initialColor;
}
}
But the window does not show and freezes the entire application.
It also doesn't show up by calling Show(); or by trying to bring it to the front after showing.
After inserting some breakpoints in OnActivate and OnDeactivate methods in ColorEditor, I noticed that the color editor gets stuck in a loop of OnActivate, immediately followed by OnDeactivate, then a pause, then OnActivate, followed by an immediate OnDeactivate again.
Does anyone know what might be happening here?
Thank you!
Hello,
I'm defining some shapes for the raddiagram and I can see that at design time however when I set the connectors I can only see them at run time. So it's a pain to see where the connectors will end up by having to compile and run every time. I don't mind even doing it at run time if I can edit the live xaml but that is not showing up. A sample project would be great!
Thanks,
Amiel
Hello!
We want to design RadGridView with nested ColumnGroups, as in example. But they are rendering not as expected (see unexpected.png). As expected in expected.png. How we can get it? Thanks for support
<
telerik:RadGridView
>
<
telerik:RadGridView.ColumnGroups
>
<
telerik:GridViewColumnGroup
Name
=
"Level1group0"
>
<
telerik:GridViewColumnGroup.ChildGroups
>
<
telerik:GridViewColumnGroup
Name
=
"Level1group11"
>
<
telerik:GridViewColumnGroup.ChildGroups
>
<
telerik:GridViewColumnGroup
Name
=
"Level2group11"
/>
<
telerik:GridViewColumnGroup
Name
=
"Level2group12"
/>
</
telerik:GridViewColumnGroup.ChildGroups
>
</
telerik:GridViewColumnGroup
>
<
telerik:GridViewColumnGroup
Name
=
"Level1group12"
/>
</
telerik:GridViewColumnGroup.ChildGroups
>
</
telerik:GridViewColumnGroup
>
</
telerik:RadGridView.ColumnGroups
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
ColumnGroupName
=
"Level1group11"
Width
=
"200"
Header
=
"Column1"
/>
<
telerik:GridViewDataColumn
ColumnGroupName
=
"Level1group12"
Width
=
"200"
Header
=
"Column2"
/>
<
telerik:GridViewDataColumn
ColumnGroupName
=
"Level2group11"
Width
=
"200"
Header
=
"Column3"
/>
<
telerik:GridViewDataColumn
ColumnGroupName
=
"Level2group12"
Width
=
"200"
Header
=
"Column4"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
Is it possible to set the Datafield labels horizontal position when the columns are auto generated in code? The look of left justified labels is not the best look for my customers application. It seems odd that there is not simple property that could be set to achieve this in the AutoGeneratingField event.
Some labels are large and some are small and make it difficult on the eyes to follow a small label so far from it's associated control.
Thank you...