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
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
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
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;
}
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik