Spell Checker not working Text Box

Aasim Khan asked on October 13, 2015 17:49

Hello Team,

I created one custom form control. That is calling in another page type. There are text box in custom control. When i am creating any page that time spell checker is not working only for that text-box that is related to custom control, except this spell checker is working fine all text box.

Please help me.

Regards, Aasim Afridi

Recent Answers

Christopher Jennings answered on November 3, 2015 20:07

Hi Aasim,

In order to expose your custom control's text boxes to the shared spell checker on the form tab, you need to override the GetSpellCheckFields() method in your control. It needs to return a List<string> with each of the text box controls client IDs. This can be retrieved with the ClientID property of your control.

Here's an example:

public override List<string> GetSpellCheckFields()
    List<string> result = new List<string>();

     // txtTest is the ID of the control you want to spell check.
    return result;
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.