I have this:
@(Html.Infragistics().TextEditor() .ID("Name") .Width(500) .NullText("Type something") .Value(Model.Name) .Render())
The client receive this:
<input id="Name" /><input name="Name" type="hidden" /><script type="text/javascript">//<!--<![CDATA[$(function () {$('#Name').igEditor({ type: 0, width: 500, nullText: 'Type something', value: 'Sony', inputName: 'Name' });});//]]>--></script>
Shouldn't be an igTextEditor?
(http://help.infragistics.com/Doc/jQuery/Current/CLR4.0?page=igTextEditor_Overview.html)
Hello Luis,
What the client receives ix exact what it should receive. The code on the client creates an igEditor of type 0, which corresponds to a text editor - refer to http://help.infragistics.com/jQuery/2014.2/ui.igeditor#options:type
On the client you can call either the igTextEditor or igEditor widget and they will both work, for example:
$("#Name").igEditor("value", 42);$("#Name").igTextEditor("value", 42);
Please let me know if you have further questions on the issue.
Thanks, Hristo. Both editors are not the same, for example igTextEditor has excludeKey, includeKey, listAutoComplete, listMatchContains, maxLength options (just to mention some), igEditor doesn't.
How to send an igTextEditor to the client using razor?
Thank you so much.