Posted 16 February 2018, 3:09 am EST
Hello,
I’m trying to make a FlexGrid in which each line has to be validated with some custom validators.
To do so, I used a formgroup in which there is a FormArray, in which there is a FormGroup for each row containing the FormControls for each collumn.
This flexgrid must be able to be filtered, so I used the wj-flex-grid-filter to do so.
The first collumn is a wjFlexGridCellTemplate in which I have a wj-combo-box.
The itemsSource of the WjFlexGrid is made with a CollectionView from an array of object, and can contain values for that first collumn that don’t exist in itemsSource of the WjComboBox.
When I’m doing the code to do so, I’m getting the following error and the printed datas are wrong:
errors.ts:42 ERROR TypeError: Cannot read property ‘children’ of null
at t.getDisplayText (wijmo.input.js:13)
at WjComboBox.t.getDisplayText (wijmo.input.js:13)
at WjComboBox.t.indexOf (wijmo.input.js:13)
at WjComboBox.t._setText (wijmo.input.js:13)
at WjComboBox.set [as text] (wijmo.input.js:13)
at WjValueAccessor._updateDirective (wijmo.angular2.directiveBase.js:388)
at eval (wijmo.angular2.directiveBase.js:371)
at eval (event_emitter.ts:117)
at ZoneDelegate.invokeTask (zone.js:398)
at Object.onInvokeTask (ng_zone.ts:253)
at ZoneDelegate.invokeTask (zone.js:397)
at Zone.runTask (zone.js:165)
at ZoneTask.invoke (zone.js:460)
at timer (zone.js:1540)
Can you help me please ?
Attachement : FlexGridComboBoxReactiveForm.zip