Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1145
Cannot call methods on igEditor prior to initialization
posted

I'm handling the editRowStarted event in a grid and I want to hide the editor for a column if the row is being edited, but when it's added I want it to show.

if (ui.rowAdding === false) {
$TestSampleTypeColumnManager.$_itemGrid.igGridUpdating('editorForKey', $FSQATestSampleTypeColumnItem.fielD_TESTSAMPLETYPEID).igEditor('hide');
}
else {
$TestSampleTypeColumnManager.$_itemGrid.igGridUpdating('editorForKey', $FSQATestSampleTypeColumnItem.fielD_TESTSAMPLETYPEID).igEditor('show');
}

When the "show" or "hide" get called, I get the error:
Uncaught Error: cannot call methods on igEditor prior to initialization; attempted to call method 'show'

What do I need to do to initialize the editor? 

I do this in other grids and it normally works, so I'm obviously failing to do something in this grid that's causing it to fail.

Parents Reply Children
No Data