I'm trying to set the maxLength property of an editable cell at runtime, and am having no success. We are using MVC2, with v11.2, running on IE8.
In the event handler for 'iggridupdatingeditcellstarted': Both ui.editor.igNumericEditor('option', 'maxLength', 7);and $(ui.editor).igNumericEditor('option', 'maxLength', 7);have no effect on the editor, and there seems to be no way to incorporate this feature into the grid editor as the maxLength property is not exposed to the HTML helper.
Also, moving the setting of the property to iggridupdatingeditcellstarting has no effect.
Am I missing something?
Thanks,
Bob
Tsvetelina,
Using the call to the base class (igEditor) as opposed to the specific wrapper solves the problem.
Thanks!-b
Hello Bob,
If you are using the MVC helpers please refer to the below forum post:
http://community.infragistics.com/forums/p/68835/348740.aspx#348740
You should use igEditor's option in order to achieve the desired result
http://help.infragistics.com/jQuery/2012.1/ui.igeditor#options
Hope this helps.