I have developed an application with Angular2, IgniteUI/Infragistics
PivotGrid control to load the PivotGrid. We are passing the Cubes
information i.e Measures/Dimensions dynamically and binding the json data
with the PivotGrid. We are using the Angular2 wrapper component given by
the IgniteUI/Infragistics in their github demo.
A breif explaination here about my application:-
Workbook is the parent component which has dropdown. Onchange event of the
dropdown would trigger the PivotGrid component which is a child component
of Workbook component, to load and bind the PivotGrid. After the PivotGrid
grid is bound/loaded, it should load the selector for the PivotGrid. this
selector is placed in a child component called slideout under this
PivotGrid. Basically whenever the dropdown is getting changed, it should
load the appropriate PivotGrid and its selector components respectively.
1. In Workbook which is the parent component has dropdown, "OnChange"
event trigger when the dropdown value changes, it is going to trigger the
ngOnChanges event in the PivotGrid since its Input() parameters values is
being changed.
2. In PivotGrid during ngOnChanges event, it calls the local method
LoadInfraPivotGrid() which binds the grid. After binding the grid, I change
the Input() parameters value for the slideout component which should again
trigger ngOnChanges event in slideout component.
3. In slideout during ngOnChanges event it binds the selector component.
4. the Data to bind the selector component is passed from the parent
PivotGrid using the @Injectable component SessionService which hold the
data. The values are read from this SessionService and then bind with the
selector.
The Problem I am facing here is data is not properly bound/loaded with the
PivotGrid/Selector. The result is whenever I try to change the
Measures/Dimensions in the selector, the PivotGrid crashes with the
following error message. When I try change/modify in the selector control
continuously this problem would occur.
Uncaught TypeError: Cannot read property 'top' of undefined
at t.(anonymous function).(anonymous
function)._positionOverlayDropAreas
(http://localhost:3000/js/IgniteUI/infragistics.lob.js:662:19496)
at t.(anonymous function).(anonymous
function)._positionOverlayDropAreas
(http://code.jquery.com/ui/1.10.3/jquery-ui.min.js:5:5028)
at t.(anonymous function).(anonymous function)._onDataRendered
(http://localhost:3000/js/IgniteUI/infragistics.lob.js:662:18161)
at t.(anonymous function).(anonymous function)._onDataRendered
(http://code.jquery.com/ui/1.10.3/jquery-ui.min.js:5:5028)
at HTMLTableElement.dataRendered
(http://localhost:3000/js/IgniteUI/infragistics.lob.js:661:12953)
at t.(anonymous function).(anonymous function)._trigger
(http://code.jquery.com/ui/1.10.3/jquery-ui.min.js:5:10002)
at t.(anonymous function).(anonymous function)._renderData
(http://localhost:3000/js/IgniteUI/infragistics.lob.js:138:17643)
at t.(anonymous function).(anonymous function)._renderData
(http://code.jquery.com/ui/1.10.3/jquery-ui.min.js:5:5028)
at t.(anonymous function).(anonymous function).proxy
(http://code.jquery.com/jquery-1.12.3.js:529:14)
at Class._invokeCallback
(http://localhost:3000/js/IgniteUI/infragistics.core.js:270:30197)
Please find the sample source in the URL
<https://github.com/snkrishnan1/PivotGridSample>
Even when I drill-down the Reports on rows, it crashes. any ideas what is
the mistake I am doing here? any fixes?
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.