I just updated my project from 2015 to 2018.1 version of infragistics.
@(Html.Infragistics().TextEditorFor(m => m.Username) .ValidatorOptions(m => m.OnBlur(false).OnSubmit(true)) .ID("txtUsername") .Value(null) .Width("100%") .PreventSubmitOnEnter(false) .HtmlAttributes(new Dictionary<string, object>() { { "class", "input-login" } }) .Render() )
Hello Mario,
Thank you for contacting the Infragistics support!
We tested your scenario and were not able to reproduce the issue that you describe. The class is applied to the input as expected. I am attaching a screenshot for your reference.
We tested it with version 2018.1. Can you please provide us with an isolated sample that reproduces this issue so that we would be able to investigate this scenario further?
Thank you once more for using Ignite UI!
We are looking forward to your response!
ok I understand , but in the previous version add the class to the first div, not to the input.Is there any way to add it to the first div?
Thank you for your response!
You can still achieve this with the new version of the editors.
You do not need to use the “HtmlAttributes” property. Instead, you would bind to the “Rendered” event of the text editor and would add the class to the container manually.
It would look like this:
$("#txtUsername").bind({ igtexteditorrendered: function (e, args) { var container = $(".ui-igedit-container"); container.addClass("input-login") } });
If this approach is not suitable for you, please let us know.
Thank you once more for contacting the Infragistics support!