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)
Well, I am confused. As I said before, igEditor doesn't have the same options than igTextEditor. If there is no way to send igTextEditor using the helper then the only way is writing it manually.
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
Hello Luis,
Your Razor syntax is just fine and initializing the widget is also correct as I pointed out. If you experience issues when working with the igTextEditor client side please try to call the widget in advance as follows:
$("#Name").igTextEditor();$("#Name").igTextEditor("value", 55)
Please try it and let me know if you get instance of the igTextEditor widget, I believe it must as I tested this for you.
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.
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.