Telerik Forums
UI for WPF Forum
4 answers
270 views

Hello!

I'm trying to convert a little .aspx page to a WPF window.

In the .aspx page I have a simple .NET RadEditor that allows me to edit a small text, adding and removing html tag very easily.

As said, I'd like to reproduce the same behaviuor inside a WPFwindow.

Following the official documentation provided, the best solution I found is a combination of a RadRichTextBox and a RadRichTextBoxUIRibbon.

I've spent many hours trying to get the same result, but I couldn't figure it out.

For example, if I write the word "This is a test" in the RadEditor, then select the whole sentence, and press on the "B" button (B for Bold), the result that I achieve when I read the textbox inside the editor is "<strong>This is a Test</strong>". This is perfect!

But if I try to do the same thing inside the RadRichTextBox, using the "B" Button in the RadRichTextBoxRibbonUI, when I export the content of the Document using the provided HtmlFormatProvider the result I get is very different, as I get something like a whole HTML page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
p { margin-top: 0px;margin-bottom: 12px;line-height: 1.15; } 
body { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px; } 
.Normal { telerik-style-type: paragraph;telerik-style-name: Normal;border-collapse: collapse; } 
.TableNormal { telerik-style-type: table;telerik-style-name: TableNormal;border-collapse: collapse; } 
.s_6C8EFA9D { telerik-style-type: local;font-weight: bold; } </style></head><body><p class="Normal "><span class="s_6C8EFA9D">This is a Test</span></p></body></html>

Am I wrong with the configuration? If any other solution exists, I'll be glad to implement it, even if it means to change the whole page logic.

Thank you!

Damiano

 

Damiano
Top achievements
Rank 1
 answered on 03 Sep 2020
16 answers
198 views
Hi,
I've read the self reference section in documentation but still I can not show my self referred data table in TreeView.
Step by Sptep help I need,
Thank you.
Petar Mladenov
Telerik team
 answered on 03 Sep 2020
2 answers
1.2K+ views

I want to remove the border that appears when a cell is selected in the RadGridView. When looking around for solutions on this forum all I find is solutions that include modifying the template for the GridViewCell. But this seems like such an easy thing to do by just changing some style or something. 

So my question is, is there an easier way to remove the border (that appears when a cell is selected), than to modify the whole template?

 

Martin
Top achievements
Rank 1
Veteran
 answered on 01 Sep 2020
5 answers
293 views

Hi, I have a weird issue. I’m deploying a wpf app via clickonce and have it installed on several PCs.
On one of the PC’s the Telerik input controls don’t display. It works on all the other PC’s and it’s only controls like date/num pickers & dropdowns not working. Telerik based grid views, tabs etc all work fine on all PCs.
I have attached a screenshot from the same install on two different PC’s to demo the issue.

Have you any idea why this might be and what I can check? 

Thanks,

Richard

Dilyan Traykov
Telerik team
 answered on 31 Aug 2020
5 answers
400 views

Hi,

I have tried the WPF webcam demo and I can't get it to work. Do I have to change any security settings to allow the demo program to access my webcam?

Also the application crash after a few tries taking a picture. If I try recording i crashes directly.

I use WPF Demo 2020 R1 and Telerik Ui for WPF R1 2020.

OS is Win10 Enterprise, Version 1607.

Martin Ivanov
Telerik team
 answered on 31 Aug 2020
1 answer
122 views

Hello,

I'm using this article to make a custom appointment and custom appointment dialog, but it doesn't work. It says that you're supposed to be able to access custom appointment properties, but I try to display a custom appointment property in a combobox and it doesn't work. 

This is my code, my custom appointment has a property named "FactionDef" of type "List_ShiftDTO", I bind it to selectedItem but it can't find it even if it's clearly there. The combobox shows the itemsource and all the "List_ShiftDTO" objects inside the ObservableCollection "TypeFactions".

<telerik:RadComboBox Grid.Row="2" Grid.Column="1"
SelectedItem="{Binding Occurrence.Appointment.FactionDef, Mode=TwoWay}" Margin="3"
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=telerik:SchedulerWindow}, Path=ScheduleView.DataContext.TypeFactions}" DisplayMemberPath="Display"/>
Dilyan Traykov
Telerik team
 answered on 28 Aug 2020
1 answer
194 views

I have a RadGridView and one of the columns is called "Actions". Basically it contains a RadDropDownButton component which displays a list of actions.

The problem I have is, when I have like 50 rows in the grid, if I click on the RadDropDownButton  in the first row and then by using the mouse wheel to scroll down,

the popup window of the RadDropDownButton stays open and it loads different actions I guess for the elector the mouse wheel got focused afterwards.

 

Can somebody explain me here, what should I do?

Set the SelectedItem of the grid to the mouse wheel row that was focused or hovered?

How to get the row that is being focused or hovered with MouseWheel event?

If I set the SelectedItem to the CurrentItem will this fix my problem?

Why I see CurrentItem and no CurentRow? Because I use older version of WPF Telerid RadGridView?

Could I possibly close the popup window of the RadDropDownButton on the MouseWheel event?

 

Any other info would be useful.

Vladimir Stoyanov
Telerik team
 answered on 28 Aug 2020
1 answer
553 views

I have been trying to change the Thumb color in my RadToggleSwitchButton.

I have the following code:

<telerik:RadToggleSwitchButton
                Grid.Row="15"
                Margin="0,0,0,0"
                Padding="0"
                ContentPosition="Both"
                Foreground="White"
                IsChecked="{Binding IsRadToggleSwitchButtonChecked}">
                <telerik:StyleManager.Theme>
                    <telerik:MaterialTheme />
                </telerik:StyleManager.Theme>
 
                <ToggleButton.LayoutTransform>
                    <RotateTransform Angle="90" />
                </ToggleButton.LayoutTransform>
                <telerik:RadToggleSwitchButton.UncheckedContent>
                    <Border>
                        <TextBlock
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            FontSize="10"
                            FontWeight="Bold"
                            Foreground="White"
                            TextAlignment="Center">
                            <TextBlock.LayoutTransform>
                                <RotateTransform Angle="-90" />
                            </TextBlock.LayoutTransform>
                            T1<LineBreak />
                            t1</TextBlock>
                    </Border>
                </telerik:RadToggleSwitchButton.UncheckedContent>
 
                <telerik:RadToggleSwitchButton.CheckedContent>
                    <Border>
                        <TextBlock
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            FontSize="10"
                            FontWeight="Bold"
                            Foreground="White"
                            TextAlignment="Center">
                            <TextBlock.LayoutTransform>
                                <RotateTransform Angle="-90" />
                            </TextBlock.LayoutTransform>
                            T2<LineBreak />
                            t2</TextBlock>
                    </Border>
                </telerik:RadToggleSwitchButton.CheckedContent>
            </telerik:RadToggleSwitchButton>

 

I want to change these orange/white colors in the image attached.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 27 Aug 2020
1 answer
301 views

Hi,

I have a RadGridView which is bind on the Items property from my ViewModel :

<telerik:RadGridView x:Name="gridView" 
                             Grid.Row="1" 
                             ItemsSource="{Binding Items}"
                             >

On many column, user can Filter, Sort, ...

<telerik:GridViewDataColumn Header="Nom" 
                                        IsGroupable="False" IsSortable="True" IsFilterable="True"
DataMemberBinding="{Binding Utilisateur.Nom, Mode=OneTime}"
                                        Width="150" MinWidth="10" />

Unfortunately, the filters are reset each time the Items property is modified (if the user reloads the data, modifies his search, ...).

Is there a way to prevent this reset of the filters on the columns?

Thx,

Vladimir Stoyanov
Telerik team
 answered on 27 Aug 2020
1 answer
364 views

Hi, I'm new to Telerik and have the following problem.
I am currently using the LayoutControlSplitter.

The problem is that if I move the splitter right to the end of the window it goes outside the window.

Code:

 <Grid>    
<telerik:RadLayoutControl>   
<telerik:LayoutControlExpanderGroup Header="Expander group" />           
<telerik:LayoutControlSplitter />            
<Button Content="Button" />        
</telerik:RadLayoutControl>
</Grid>

How can I fix the problem? Thank you very much!

Vladimir Stoyanov
Telerik team
 answered on 26 Aug 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?