Using the MVC Helper, how do you set the textbox to be hidden? I've tried using the "Display" property as listed in the documentation linked below, but this property doesn't exist in the MVC Helper.
http://help.infragistics.com/jQuery/2012.1/ui.igtexteditor
Nevermind! For some reason VS was not seeing the 12.1 dll as a newer version, so it wasn't overriding the existing 11.2 dll in the bin, hence the reason the version hadn't changed in the properties. Works great now!
I thought I was using 12.1. I installed the Infragistics package, then reference the dll: C:\Program Files (x86)\Infragistics\NetAdvantage 2012.1\jQuery\MVC\Infragistics.Web.Mvc.dll
However, after I do this, if I look at the reference's properties in VS, it shows version "3.11.2.2060". Is there a possibility that your installer package doesn't contain the correct 12.1 MVC dll?
Hi JoshNoe,
I suppose you're using NetAdvantage for jQuery 11.2? We have a known bug that HtmlAttributes method doesn't render attributes. This issue is fixed in the upcoming service release for 11.1 and 11.2 which will be available in the next few days.
Currently the code which I send you is working with 12.1 release.
Hope this helps,
Martin Pavlov
Infragistics, Inc.
Thanks Martin, but I copied & pasted your code into my view verbatim, and it doesn't generate the class="hidden" attribute in the html. It generates this:
class="ui-igedit-field ui-igedit ui-state-default ui-widget ui-corner-all"
It seems like the html attributes property is not implemented for the texteditor control? I tried using other html attributes just to be sure, but none of them are ever generated.
Hi Josh,
The display option in igEditor is designed for situation when application uses unexpected html element as the selector for widget. In case of Mvc the base html element/selector is generated by server and therefore there is no need for corresponding setter in Mvc helper. If application needs to use the value for style.display other than inline-block, then HtmlAttributes suggested by Martin should be used.