I have an editor in a grid declared in MVC code but then updated on the client side via javascript. The options I'm setting from javascript don't seem to be honored. I set the following in BLOCKED SCRIPT
$(ui.editor).igEditor("option", "buttonHidden", false);
$(ui.editor).igEditor("option", "listItems", _advancedCriteria_ResponseData.OperandList);
$(ui.editor).igEditor("option", "listAutoComplete", false);
$(ui.editor).igEditor("option", "listMatchContains", true);
$(ui.editor).igEditor("option", "listMatchOnly", true);
However, the "listMatchContains", and "listMatchOnly" flags are not honored. Typing a value in the drop down doesn't even cause the control to drop down the values (even though they exist in list).
Is there something I am doing wrong?
Hello Ryan,
I've checked those 2 options and they are working as expected when set at run-time. igEditor will not automatically show the drop-down. For this to happen you should set the igTextEditor.dropDownTriggers to "focus" for example or open it using the igTextEditor.dropDownVisible API method. It is worth to mention that the igCombo is more sophisticated control than the igEditor.type="text" with drop-down button, thus don't expect both of them to provide the same functionality. You have both of the controls exposed as an igGridUpdating editors, but you should carefully choose which one of them to use in a column configuration based on your user scenario.
Hope this helps,Martin PavlovInfragistics, Inc.
So is there a way to use the more sophisticated igCombo at run-time through javascript? The column could also change between a text editor, dropdown, date picker, etc. based on what the user chooses in another column (which is why I was using the text editor with drop down instead)?
Your best option is igEditor since you can change its type in run-time. The igCombo cannot change to date picker, although you can tweak it to look like text editor.
Best regards,Martin PavlovInfragistics, Inc.
is there any way to resolve this problem?
i want to change the editor in iggrid from texteditor to combobox and gainsay