Telerik Forums
UI for WPF Forum
1 answer
891 views

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"/>
Polya
Telerik team
 answered on 25 Oct 2017
7 answers
216 views
The UI for WPF Demo no longer works on my work workstation running Windows 10 Enterprise. The demo loads and you can get to the list of controls to explore, but on clicking any control I get the following error "Exception has been thrown by the target of an invocation." I have tried reboots and also rerunning the setup fresh from the Telerik website, but still get the same issue.

The demo worked yesterday (08/03/2017). No Windows updates, driver installs/updates, or any other changes have been made to the system between the time the demo application worked and stopped working.
Martin Ivanov
Telerik team
 answered on 25 Oct 2017
1 answer
86 views

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

Tanya
Telerik team
 answered on 25 Oct 2017
1 answer
55 views

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.

Martin Ivanov
Telerik team
 answered on 24 Oct 2017
1 answer
114 views

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


Martin Ivanov
Telerik team
 answered on 24 Oct 2017
0 answers
133 views
Not sure if this belong here or in the RadListBox-forum. But anyway...

I've got a RadListBox bound to an ObservableCollection with 2000 items. The items are displayed using a DataTemplate with an Image and a TextBlock. I've also implemented filtering of the items using a regular TextBox together with an IsVisible-property on the items. When entering text in the TextBox I hide all the items not matching the searchstring. Filtering works great, but I've noticed severe performance hits when running this on laptops with touch-screens (Windows 10). It works reasonably well when hiding items, but when clearing my filter (i.e. setting a lot of items to be visible again) it's really slow. I have set the TouchManager.IsTouchEnabled to false, and the AutomationManager.AutomationMode is disabled. It doesn't matter if i turn on or off the VirtualizingPanel.IsVirtualizing on the RadListBox. The only thing that I've found to work is by opening the device manager and disable the touchscreen-HID device, so I'm fairly certain that the performance hit is due to the touch-functionality.
Magnus
Top achievements
Rank 1
 asked on 24 Oct 2017
2 answers
140 views

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!

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Oct 2017
3 answers
139 views

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

Vladimir Stoyanov
Telerik team
 answered on 23 Oct 2017
3 answers
435 views

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>
Stefan
Telerik team
 answered on 20 Oct 2017
3 answers
124 views

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...

Stefan
Telerik team
 answered on 20 Oct 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?