Completed
Last Updated: 23 Mar 2020 09:54 by ADMIN
Release R2 2020 (LIB 2020.1.323)
Theo
Created on: 18 Mar 2020 10:01
Category: UI for WinForms
Type: Bug Report
1
Spellchecker updates text in readonly textbox

Morning

 

Please see attched demo project

 

We have several controls that we use spell checker on (including textbox, grid, combo, etc)

Issue is that if you have a misspelled word in a control that is readonly, you are still able to change the text via context menu to update the spelled word

In the example program, start up, click on make readonly, right click on wavy red line word, select option to replace with, word is updated.

We are not able to disable the controls and toggle between read only and not readonly to define editablility of the controls

Is there a work around for this? Should it not be inlcuded in the spell check control?

 

thank you

Theo

Attached Files:
3 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 18 Mar 2020 14:01
Hello, Theo,

After further discussion within the team, we have decided to consider this undesired as an issue with RadSpellChecker. That is why I have logged it in our feedback portal by making this item public on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Currently, due to the specificity of the internal spell checking functionality, the possible solution that I can suggest is to either disable the context menu as it was previously demonstrated or reset the associated control for RadSpellChecker when the text box is made read only.

Please excuse us for the inconvenience caused. We will do our best to include the fix in one of the upcoming latest internal builds.

Should you have further questions please let me know.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Theo
Posted on: 18 Mar 2020 12:19

Thank you for the prompt response

Issue is that the user requirement is to see the misspelled word even if not in edit mode as well as the indicator that it is misspelled with the squigly red line.

The proposed solution, although technically would work, would require us to update all screens in the system (about 130 odd screens currently of which most have some sort of spellchecker implemented)

That wide a change will be very difficult to sell to my project manager.

Our expectation was that the Spell Checker internally would have handled this or baked into the text editor controls.

Would there be any way I could inheret from the spell checker and implement a similar solution?

Basically add the popup event in the control on assignment of the AutoSpellCheckControl?

Thank you

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 18 Mar 2020 12:03
Hello, Theo,

The provided sample project is greatly appreciated. The purpose of the auto-spellchecking functionality that RadSpellChecker offers is to check the text for correctness and allow the end user to correct the misspelled words. Indeed, it does't take into consideration whether the associated control is read only or not. However, if the control is read only, why it is being spellchecked then?

The possible solution that I can suggest is to prevent the context menu with the available options from showing according to your requirement. The following code snippet demonstrates how to achieve it: 
        private void RadForm1_Load(object sender, EventArgs e)
        {
            radTextBox1.Text = "Some mispeled text";

            radSpellChecker1.AutoSpellCheckControl = radTextBox1;
            radSpellChecker1.EnableCompleteMessageBox = false;
            TextBoxSpellChecker textSpellChecker = this.radSpellChecker1.GetControlSpellChecker(typeof(RadTextBox)) as TextBoxSpellChecker;
            if (textSpellChecker != null)
            {
                textSpellChecker.DropDownMenu.PopupOpening += DropDownMenu_PopupOpening;
            }
        }

        private void DropDownMenu_PopupOpening(object sender, CancelEventArgs args)
        {
            args.Cancel = true;
        }
I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.