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
Hi JoshNoe,
As you already noticed we don't have Display method in the TextEditor MVC Wrapper. I have to check what is the cause of lacking this method in the MVC wrapper.
For now you can use the following workaround if it fits for you:
In the code I use HtmlAttributes method to add new css class to the TextEditor. This class is defined as "!important", because TextEditor already uses "display" rule, thus I need to make my rule with higher priority and override the one that comes in the style attribute of the editor itself.
Note: First I tried to set style attribute to "display:none", but this doesn't work.
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.
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.
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?