Click or drag to resize
KaxSpellClientTextSource Property
Gets or sets the class of the client side text source object.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public string ClientTextSource { get; set; }

Property Value

Type: String
A string containing the name of the JavaScript class. The default is HtmlElementTextSource -- a built in implementation that obtains the source from a HTML element.
Remarks
The text source is a JavaScript object. It has to provide two methods: GetText() and SetText(newValue).
Examples
Different controls text source
<script type="text/javascript">
function DifferentControlsSource()
{
    this.GetText = function()
    {
        return document.getElementById('before').value;
    }

    this.SetText = function(newValue)
    {
        document.getElementById('after').value = newValue;
    }
}
</script>
See Also