Telerik Forums
UI for WPF Forum
1 answer
85 views
Where does the add to dictionary text get saved. Even after closing and opening the application, the RADRichText Editor is able to use that while checking spellings
Dimitar
Telerik team
 answered on 31 May 2021
2 answers
398 views

Hello, we are using the RadRIchTextBoxes, in our WPF application in different Modules.

We are using it like a plain text box, but using the SpellCheck Feature to check the spelling of upper case. (   this.custNotesRichTextBox.SpellChecker.Settings.SpellCheckUppercaseWords = true;)

We use the context menu to get the spelling suggestions. But we do not want the user to use, Hyperlink, FONT, how do we disable this.

We wanted to see if we can disable in the main WPF application (where we add reference to the Telerik.Windows.Documents.Proofing.Dictionaries.En-US) than in each module. Because we feel customizing for each textbox would consume memory.

Please refer screenshot below.

 

 

 

Dimitar
Telerik team
 answered on 31 May 2021
2 answers
477 views

Hello.

I'm making it using MVVM.

 

I've been asking questions before and got a lot of answers. Among them, a binding error is output.
On the actual screen, it is bound without any problem.
However, an error is displayed in the output.

Please refer to my example. The situation is like this.

StartView => MainWindow Open -> Hierarchy1 Open
You click on UserControl A and UserControl B once at a time.

The binding is bound. However, you will get an output error while debugging.

Usercontrol A.xaml contains UserAGridView and UserATextBlock.
Usercontrol B.xaml contains ComboData, ComboDataItem, OnClickButtonCommand, and ButtonText.

Whenever you click on a Navigation Item, you will get a bounding error in the output about what is bound to that Usercontrol.
(Bind value in debugging screen works normally)

The same phenomenon appeared in the button in the Column in UsercontrolA, and I tried using a proxy, but it was the same.

What is the problem?

 

Thanks.

 

Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
 updated answer on 31 May 2021
0 answers
142 views

I did all I can Still I cannot take away the line spacing after hitting  "Enter", I could not get it working  (looks like the DocumentInheritsDefaultStyleSettings  is interfering?)

I have uploaded a sample project (that tells the behavior) as well.

 

Please find the code I used below.

                                <telerik:RadRichTextBox x:Name="custNotesRichTextBox"
                                                        Grid.Row="0"
                                                        DocumentInheritsDefaultStyleSettings="True"                                                     
                                                        AcceptsTab="True"
                                                        AcceptsReturn="True"                                                         
                                                        ScrollViewer.VerticalScrollBarVisibility="Auto"
                                                        HorizontalScrollBarVisibility="Hidden"                                                        
                                                        IsSpellCheckingEnabled="True"
                                                        Language="en-US"
                                                        IsContextMenuEnabled="True"                                                        
                                                        Margin="0"
                                                        VerticalScrollBarVisibility="Hidden">
                                    <telerik:RadRichTextBox.Document>
                                    <telerik:RadDocument LineSpacing="0" LineSpacingType="AtLeast" ParagraphDefaultSpacingAfter="0" ParagraphDefaultSpacingBefore="0" >
                                        <telerik:Section>
                                                <telerik:Paragraph LineSpacing="0" LineSpacingType="AtLeast" SpacingBefore="0" SpacingAfter="0" AutomaticSpacingBefore="False" AutomaticSpacingAfter="False" >
                                                <telerik:Span  Text=" "/>
                                            </telerik:Paragraph>
                                        </telerik:Section>
                                    </telerik:RadDocument>
                                    </telerik:RadRichTextBox.Document>
                                    </telerik:RadRichTextBox>
Ramesh
Top achievements
Rank 1
Iron
 updated question on 28 May 2021
1 answer
1.0K+ views

Hi,

When I am using the following code to show a splash screen using the RadSplashScreenManager, with StartupLocation = null, only the top left corner of the window is centered on the screen. I have the same behavior without customizing the SplashScreenDataContext :

            var splashScreenDataContext = (SplashScreenDataContext)RadSplashScreenManager.SplashScreenDataContext;
            splashScreenDataContext.ImageHeight = 300.0;
            splashScreenDataContext.ImageStretch = Stretch.Uniform;
            splashScreenDataContext.ImagePath = "/MyAssembly;component/Resources/MyImage.png";

            RadSplashScreenManager.Show();

In the sample, your are using hard coded sizes (260 and 160) to calculate the StartupLocation of the splash screen :

        private void ShowSplashScreen()
        {
            this.timer.Start();
            Mouse.OverrideCursor = Cursors.Wait;
            this.splashScreenDataContext = RadSplashScreenManager.SplashScreenDataContext as SplashScreenDataContext;
            this.splashScreenDataContext.ImagePath = "/SplashScreen;component/SplashScreen.png";
            this.splashScreenDataContext.IsIndeterminate = false;
            this.splashScreenDataContext.Content = "Loading... 0%";
            this.parentWindow.CanMove = false;
            this.parentWindow.IsEnabled = false;
            if (this.parentWindow.WindowState != System.Windows.WindowState.Maximized)
            {
                var x = this.parentWindow.Left + this.parentWindow.ActualWidth / 2 - 260;
                var y = this.parentWindow.Top + this.parentWindow.ActualHeight / 2 - 160;
                RadSplashScreenManager.StartupPosition = new System.Windows.Point(x, y);
            }

            RadSplashScreenManager.Show();
        }

Hard coding the sizes of the window is obviously not ideal. Instead, the splash window should act like any Window with the property SizeToContent="WidthAndHeight".

Can you help ?

Vladimir Stoyanov
Telerik team
 answered on 26 May 2021
0 answers
249 views

Hello,

I have some troubles for getting the RadDatePicker working as expected, while using the propertiy 'DisplayDateStart'. Here my code:

At the start, when I select a date from the first RadDatePicker (valid from), the other one is working correctly (see the ok.png). But if I choose another date (minor to the previous one) some date are still greyed out on the second control (Valid To, see the not_ok.png --> the date 1,2,3,4,5 cannot be selected). I'm not able to reproduce the same error on the other side, changing the valid to control. 

 

Edit:

I found that these controls inherit implicity from a style that has:

        <Setter Property="SelectableDateStart"
                Value="{StaticResource MinimumAllowedDate}" />
        <Setter Property="DisplayDateStart"
                Value="{StaticResource MinimumAllowedDate}" />

where MinimunAllowedData is equal to     <system:DateTime x:Key="MinimumAllowedDate">1/1/1900</system:DateTime>

Removing the SelectableDateStart solve the issue. Still not sure why is this behavior happening?

If I change the control in this way

I still get the error.

 

Are you aware of this behaviour? Or am I missing something? Thank you.

Massimo
Top achievements
Rank 1
 updated question on 26 May 2021
2 answers
1.2K+ views

Hello everyone,

can anyone post me a simple xaml code snipset to add CheckBox items into a ComboBox?

I searched in the forum but there is no simple example.

I thought something like this


<telerik:RadComboBox>
                            <telerik:RadComboBox.ItemTemplate>
                                <DataTemplate>
                                    <kzv:KzvCheckBox/>
                                </DataTemplate>
                            </telerik:RadComboBox.ItemTemplate>
                            <telerik:RadComboBoxItem Content="Test"/>
                        </telerik:RadComboBox>

But the CheckBox is still missing

Thanks for your help.

Guarana91
Top achievements
Rank 1
Iron
Iron
 answered on 26 May 2021
1 answer
139 views

I am using CartersianChart and have a vertical BarSeries attached to it.  Each bar in the series represent a numerical amount. I want to display a horizontal line across the chart at a particular amount so that it can quickly be seen which bars are above and which are below that amount. I'm looking for something similar to the red line in the attached image. Any insight you could give will be greatly appreciated.

 

Thanks,

George

 

Martin Ivanov
Telerik team
 answered on 26 May 2021
1 answer
199 views

Hello.

 

How do I set up the expanded configuration of the Treeview middle model only?

<telerik:RadTreeView.Resources>
	<Style TargetType="telerik:RadTreeViewItem" BasedOn="{StaticResource RadTreeViewItemStyle}">
		<Setter Property="IsExpanded" Value="True"/>
	</Style>
</telerik:RadTreeView.Resources>

This is true for all of the lower layers.

When I first opened it, I only want to open it up to the middle level. (Attach an image)

Thanks.

 

Martin Ivanov
Telerik team
 answered on 25 May 2021
1 answer
225 views
How do I disable or remove the New Folder button in OpenFileDialog?
Dinko | Tech Support Engineer
Telerik team
 answered on 24 May 2021
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?