Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2165
igEditor versus igTextEditor
posted

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)

Parents
No Data
Reply
  • 16310
    Offline posted

    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.

Children