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.