Hi All,
I'm facing an issue with ListGrid Component. After applying the filter using this piece of code, I do see the filter is applied and my filter handler is getting called. When you do a horizontal scrolling to view other columns, the library detects the scroll event, and tries to redraw the filter editor. In the process of redrawing, it is removing filters not in the viewport, and the filter handler is fired with incorrect criteria. It happens only in lower resolution or adjust the browser zoom size, so that a column with the filter goes out of viewport. Appreciate your help.
***
m_grid.setFilterEditorCriteria(m_Criteria);
m_grid.filterByEditor();
***
SmartGWT smartgwt-enterprise:13.0-p20220417
Browser: Chrome/Edge
StackTrace:
Uncaught TypeError: Cannot read properties of null (reading 'linearMode')
at _3.isc_FormItem___mayShowHintInField [as $2257] (ISC_Forms.js:1406:211)
at _3.isc_TextItem__mayShowHintInField [as $207e] (ISC_Forms.js:2103:1238)
at _3.isc_FormItem__getShowHintInField [as $712] (ISC_Forms.js:1406:384)
at _3.isc_TextItem__showValue [as $124t] (ISC_Forms.js:2188:101)
at _3.isc_FormItem_setValue [as setValue] (ISC_Forms.js:1308:28)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:162)
at _3.isc_TextItem_setValue [as setValue] (ISC_Forms.js:2187:9)
at _3.isc_FormItem_setCriterion [as setCriterion] (ISC_Forms.js:1457:6)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:93)
at _3.isc_c_Class_Super [as Super] (ISC_Core.js:295:170)
at _3.setCriterion (ISC_Grids.js:2067:6)
at _3.isc_DynamicForm_setItemValues [as setItemValues] (ISC_Forms.js:607:147)
at _3.isc_DynamicForm__addItems [as $10l] (ISC_Forms.js:446:47)
at _3.isc_DynamicForm_addItems [as addItems] (ISC_Forms.js:437:89)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:93)
at _3.isc_c_Class_Super [as Super] (ISC_Core.js:295:170)
at _2.addItems (ISC_Grids.js:3637:587)
at _3.isc_DynamicForm_addItem [as addItem] (ISC_Forms.js:476:276)
at _3.isc_GridBody__updateEditItems [as $517] (ISC_Grids.js:772:190)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:93)
at _3.isc_c_Class_Super [as Super] (ISC_Core.js:295:170)
at _3.$517 (ISC_Grids.js:3635:1685)
at _3.isc_GridBody_redraw [as redraw] (ISC_Grids.js:755:22)
at _3.isc_GridRenderer_redrawOnScroll [as redrawOnScroll] (ISC_Grids.js:239:13)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:93)
at _3.isc_c_Class_Super [as Super] (ISC_Core.js:295:170)
at _3.isc_GridBody_redrawOnScroll [as redrawOnScroll] (ISC_Grids.js:770:130)
at _3.isc_GridRenderer_scrollTo [as scrollTo] (ISC_Grids.js:237:130)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:162)
at _3.isc_GridBody_scrollTo [as scrollTo] (ISC_Grids.js:729:23)
at _3.isc_ListGrid_syncFilterEditorScrolling [as syncFilterEditorScrolling] (ISC_Grids.js:1981:5)
at _3.isc_ListGrid_bodyScrolled [as bodyScrolled] (ISC_Grids.js:1975:56)
at _3.isc_GridBody_scrollTo [as scrollTo] (ISC_Grids.js:729:99)
at _3.isc_Canvas_scrollToRatio [as scrollToRatio] (ISC_Core.js:3903:991)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:162)
at _3.isc_GridRenderer_scrollToRatio [as scrollToRatio] (ISC_Grids.js:227:296)
at _3.isc_Scrollbar_thumbMove [as thumbMove] (ISC_Foundation.js:973:443)
at _3.dragMove (ISC_Foundation.js:943:1517)
at _3.isc_c_EventHandler_bubbleEvent [as bubbleEvent] (ISC_Core.js:2495:89)
at _3.isc_c_EventHandler_handleEvent [as handleEvent] (ISC_Core.js:2176:354)
at _3.isc_c_EventHandler_handleDragMove [as handleDragMove] (ISC_Core.js:2393:145)
at _3.isc_c_EventHandler___handleMouseMove [as $kz] (ISC_Core.js:2261:27)
at _3.isc_c_EventHandler__handleMouseMove [as $kx] (ISC_Core.js:2250:244)
at _3.isc_c_EventHandler_handleMouseMove [as handleMouseMove] (ISC_Core.js:2250:11)
at _3.isc_c_EventHandler_dispatch [as dispatch] (ISC_Core.js:2594:122)
at HTMLDocument.eval (eval at isc__makeFunction (ISC_Core.js:83:1135), <anonymous>:3:123)
I'm facing an issue with ListGrid Component. After applying the filter using this piece of code, I do see the filter is applied and my filter handler is getting called. When you do a horizontal scrolling to view other columns, the library detects the scroll event, and tries to redraw the filter editor. In the process of redrawing, it is removing filters not in the viewport, and the filter handler is fired with incorrect criteria. It happens only in lower resolution or adjust the browser zoom size, so that a column with the filter goes out of viewport. Appreciate your help.
***
m_grid.setFilterEditorCriteria(m_Criteria);
m_grid.filterByEditor();
***
SmartGWT smartgwt-enterprise:13.0-p20220417
Browser: Chrome/Edge
StackTrace:
Uncaught TypeError: Cannot read properties of null (reading 'linearMode')
at _3.isc_FormItem___mayShowHintInField [as $2257] (ISC_Forms.js:1406:211)
at _3.isc_TextItem__mayShowHintInField [as $207e] (ISC_Forms.js:2103:1238)
at _3.isc_FormItem__getShowHintInField [as $712] (ISC_Forms.js:1406:384)
at _3.isc_TextItem__showValue [as $124t] (ISC_Forms.js:2188:101)
at _3.isc_FormItem_setValue [as setValue] (ISC_Forms.js:1308:28)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:162)
at _3.isc_TextItem_setValue [as setValue] (ISC_Forms.js:2187:9)
at _3.isc_FormItem_setCriterion [as setCriterion] (ISC_Forms.js:1457:6)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:93)
at _3.isc_c_Class_Super [as Super] (ISC_Core.js:295:170)
at _3.setCriterion (ISC_Grids.js:2067:6)
at _3.isc_DynamicForm_setItemValues [as setItemValues] (ISC_Forms.js:607:147)
at _3.isc_DynamicForm__addItems [as $10l] (ISC_Forms.js:446:47)
at _3.isc_DynamicForm_addItems [as addItems] (ISC_Forms.js:437:89)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:93)
at _3.isc_c_Class_Super [as Super] (ISC_Core.js:295:170)
at _2.addItems (ISC_Grids.js:3637:587)
at _3.isc_DynamicForm_addItem [as addItem] (ISC_Forms.js:476:276)
at _3.isc_GridBody__updateEditItems [as $517] (ISC_Grids.js:772:190)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:93)
at _3.isc_c_Class_Super [as Super] (ISC_Core.js:295:170)
at _3.$517 (ISC_Grids.js:3635:1685)
at _3.isc_GridBody_redraw [as redraw] (ISC_Grids.js:755:22)
at _3.isc_GridRenderer_redrawOnScroll [as redrawOnScroll] (ISC_Grids.js:239:13)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:93)
at _3.isc_c_Class_Super [as Super] (ISC_Core.js:295:170)
at _3.isc_GridBody_redrawOnScroll [as redrawOnScroll] (ISC_Grids.js:770:130)
at _3.isc_GridRenderer_scrollTo [as scrollTo] (ISC_Grids.js:237:130)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:162)
at _3.isc_GridBody_scrollTo [as scrollTo] (ISC_Grids.js:729:23)
at _3.isc_ListGrid_syncFilterEditorScrolling [as syncFilterEditorScrolling] (ISC_Grids.js:1981:5)
at _3.isc_ListGrid_bodyScrolled [as bodyScrolled] (ISC_Grids.js:1975:56)
at _3.isc_GridBody_scrollTo [as scrollTo] (ISC_Grids.js:729:99)
at _3.isc_Canvas_scrollToRatio [as scrollToRatio] (ISC_Core.js:3903:991)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (ISC_Core.js:303:162)
at _3.isc_GridRenderer_scrollToRatio [as scrollToRatio] (ISC_Grids.js:227:296)
at _3.isc_Scrollbar_thumbMove [as thumbMove] (ISC_Foundation.js:973:443)
at _3.dragMove (ISC_Foundation.js:943:1517)
at _3.isc_c_EventHandler_bubbleEvent [as bubbleEvent] (ISC_Core.js:2495:89)
at _3.isc_c_EventHandler_handleEvent [as handleEvent] (ISC_Core.js:2176:354)
at _3.isc_c_EventHandler_handleDragMove [as handleDragMove] (ISC_Core.js:2393:145)
at _3.isc_c_EventHandler___handleMouseMove [as $kz] (ISC_Core.js:2261:27)
at _3.isc_c_EventHandler__handleMouseMove [as $kx] (ISC_Core.js:2250:244)
at _3.isc_c_EventHandler_handleMouseMove [as handleMouseMove] (ISC_Core.js:2250:11)
at _3.isc_c_EventHandler_dispatch [as dispatch] (ISC_Core.js:2594:122)
at HTMLDocument.eval (eval at isc__makeFunction (ISC_Core.js:83:1135), <anonymous>:3:123)
Comment