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.
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.
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.
The helper is sending the igTextEditor. If you happen you are not able to call the widget at some time, please try first to call the widget and then the option/method you need:
Did you try this on your side and let me know if this resolves your issue.
Looking forward to hearing from you.
Hello,
I am still following your case. Have you been able to resolve the issue? using the suggested ?If you have any concerns or questions, please feel free to contact me, I will be glad to help you.Thank you for choosing Infragistics components!
This is fine. If you have any other questions on that matter, please let me know.
Sorry Hristo, I didn't read carefully what you wrote since the beginning ;)