This is a migrated thread and some comments may be shown as answers.

remove the "the spelling check is complete" but on WPF ... and twice

3 Answers 94 Views
SpellChecker
This is a migrated thread and some comments may be shown as answers.
fff
Top achievements
Rank 1
fff asked on 13 Apr 2017, 02:43 PM

Hi all,

I am starting a spellchecker on a textbox createad at run time like this:

RadSpellChecker.Check(internalTextBox, SpellCheckingMode.AllAtOnce);

 

I see multiple threads on client/server solutions, but no help on WPF on this message "the spelling check is complete"

So how to remove or hide it, both in:

  1. on the main spellcheck window, when finished and waiting for "OK"
  2. on the small final popup window with warning triangle (similar to a MessageBox)

Both have almost not added value, and are very user-annoying if you call the spellcheck frequently in a loop

Any code or trick for that in WPF ?

 

Thanks,

Favrice

3 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 18 Apr 2017, 10:13 AM
Hello Fabrice,

There is no easy way to customize this behavior. I've prepared sample project which illustrates that you can re-implement most of the functionality by including customized version of the built-in RadSpellChecker and SpellCheckAllAtOnceWindow classes. I've marked the significant changes with "// CHANGE: " comments.

This is less than ideal solution, as you won't get potential updates and fixes, but is the only approach I can think of with the current API. 

Regards,
Boby
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
fff
Top achievements
Rank 1
answered on 24 Apr 2017, 08:22 PM

Hi Boby,

I took some time to look at possible solutions

First ... I am impressed & really want to thank you for your time on making this sample.

I think of future like you did ... & i known too well what will happen: i will forget about that and suddenly it will brake because of any future library update. So this is not a route I'd like to follow. I want to keep Telerik's original solutions and no tweaks

Maybe I will be rude but ... did you not spend more time on that, than one of your colleague "just" adding once for all x2 bool parameter disabling this MessageBox and the text ?

  • it's not a breaking change for others users (default values would maintain current behavior)
  • it has been questionned already several times

?

Fabrice

0
Boby
Telerik team
answered on 27 Apr 2017, 07:41 PM
Hello,

I've additionally looked into the case, and now I believe this is more of a bug in the implementation, as such property exists, but it's not fully respected in this scenario - see the item I've just created: SpellChecker: RadSpellChecker.WindowSettings.ShowAlertWhenSpellCheckingCompleted doesn't suppress all alerts in AllAtOnce scenario.

The fixing would not be actually so easy, as automatic closing could interfere with other scenarios in which these dialog are used - for spell checking RadGridView and DataGrid; and we also support two different platforms (WPF and Silverlight) which have some different implementations. 

I would like to mention though that the priority of the bug is relatively low, and we currently do not expect major changes in the implementation, so the workaround provided may actually be a feasible solution.

Regards,
Boby
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
SpellChecker
Asked by
fff
Top achievements
Rank 1
Answers by
Boby
Telerik team
fff
Top achievements
Rank 1
Share this question
or