Hi,
I want to call 'WebSpellchecker' from code behind.
Reference: http://samples.infragistics.com/2010.2/WebFeatureBrowser/Default.aspx.
This example launches spell check when button is pressed by user.
In my scenario, I have save button (asp.net button) which will save data after spell correction.
Let me know how to achieve this.
Hello Rakesh,
The WebSpellChecker AutoPostBackFlags has a property called SpellCheckComplete which when set to true, will trigger a PostBack after the SpellCheck has finished. I have attached a sample to demonstrate this functionality.Please test this sample and let me know if you have any questions or need further assistance.Thank you.Sincerely,Mike D.Developer Support EngineerInfragisticswww.infragistics.com/support
Thank you for posting your inquiry to the Infragistics ASP.NET forums. As stated in the following forum post,
<http://community.infragistics.com/forums/p/47002/251778.aspx#>
the WebSpellChecker has both a client-side and server-side event called SpellCheckComplete which may be used.
The following link is to the Infragistics NetAdvantage Online Help for ASP.NET 2010 Volume 2 where information on the WebSpellChecker API may be found:
WebSpellChecker <http://help.infragistics.com/NetAdvantage/ASPNET/Current/CLR4.0/?page=Web_WebSpellChecker.html> WebSpellChecker Class Members <http://help.infragistics.com/NetAdvantage/ASPNET/Current/CLR4.0/?page=Infragistics4.WebUI.WebSpellChecker.v10.2~Infragistics.WebUI.WebSpellChecker.WebSpellChecker_members.html>
WebSpellCheckerClientEvents Class Members <http://help.infragistics.com/NetAdvantage/ASPNET/Current/CLR4.0/?page=Infragistics4.WebUI.WebSpellChecker.v10.2~Infragistics.WebUI.WebSpellChecker.WebSpellCheckerClientEvents_members.html>
If you are to use the client-side SpellCheckComplete, then you will need to call __doPostBack to trigger a PostBack to call your saving procedure during the PostBack. In this scenario, the Save Button should be wired to do spell checking only and nothing else.
Please let me know if this information helps or if you have any questions.
Thank you.
Sincerely,Mike D.Developer Support EngineerInfragisticswww.infragistics.com/support