Hi,
I am using SmartGWT version 12.1-p20200520.
I have created a Custom Tile Grid implementation with constructor as follows:
In my view class, I instantiate this custom TileGrid and add it to a Layout.
Now, when I am doing layout.removemember(tileGrid) it gives me error
Can you please help me why am I getting this error and what is wrong with my TileGrid setting?
I am using SmartGWT version 12.1-p20200520.
I have created a Custom Tile Grid implementation with constructor as follows:
Code:
setDataSource(datasource); setSelectionType(SelectionStyle.SINGLE); final Criteria criteria = new Criteria(); criteria.addCriteria("id", libraryId); criteria.addCriteria("vm_id", null != vendorMaterialId ? vendorMaterialId.toString() : vendorMaterialId); criteria.addCriteria("frmString", "frmString"); setInitialCriteria(criteria); setAutoFetchData(true); GWT.create(MetaFactory.class); setTileConstructor(tileType.getClass().getName()); setTileWidth(ComponentStyle.INT_325); setTileHeight(ComponentStyle.INT_220); setTilesPerLine(ComponentStyle.INT_4); setOverflow(Overflow.VISIBLE); this.priceSource = priceSource; this.libraryFlag = libraryFlag;
Now, when I am doing layout.removemember(tileGrid) it gives me error
"TypeError: Cannot read property 'getClass' of undefined
at Object.Class_getCanvasLocatorFallbackPath [as getCanvasLocatorFallbackPath] (http://127.0.0.1:8888/XYZ/sc/modul...re.js:5002:189)
at _3.class_getCanvasLocatorFallbackpath [as getCanvasLocatorFallbackPath] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:5021:43)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (http://127.0.0.1:8888/XYZ/sc/modul...Core.js:315:93)
at _3.isc_c_Class_Super [as Super] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:307:170)
at _3.tileGrid_getCanvasLocatorFallbackPath [as getCanvasLocatorFallbackPath] (http://127.0.0.1:8888/XYZ/sc/modul...re.js:5217:155)
at _3.canvas_getStandardChildLocator [as getStandardChildLocator] (http://127.0.0.1:8888/XYZ/sc/modul...re.js:5039:311)
at _3.canvas_getChildLocator [as getChildLocator] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:5038:13)
at _3.canvas_getLocatorInternal [as getLocatorInternal] (http://127.0.0.1:8888/XYZ/sc/modul...re.js:5028:105)
at _3.canvas_getLocatorInternal [as getLocatorInternal] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:5028:62)
at _3.canvas_getLocatorInternal [as getLocatorInternal] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:5028:62)
at _3.canvas_getLocatorInternal [as getLocatorInternal] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:5028:62)
at _3.canvas_getLocator [as getLocator] (http://127.0.0.1:8888/XYZ/sc/modul...re.js:5025:209)
at Object.Class_getCanvasLocatorFallbackPath [as getCanvasLocatorFallbackPath] (http://127.0.0.1:8888/XYZ/sc/modul...re.js:5002:189)
at _3.class_getCanvasLocatorFallbackpath [as getCanvasLocatorFallbackPath] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:5021:43)
at _3.isc_c_Class_invokeSuper [as invokeSuper] (http://127.0.0.1:8888/XYZ/sc/modul...Core.js:315:93)
at _3.isc_c_Class_Super [as Super] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:307:170)
at _3.tileGrid_getCanvasLocatorFallbackPath [as getCanvasLocatorFallbackPath] (http://127.0.0.1:8888/XYZ/sc/modul...re.js:5217:155)
at _3.canvas_getStandardChildLocator [as getStandardChildLocator] (http://127.0.0.1:8888/XYZ/sc/modul...re.js:5039:311)
at _3.canvas_getChildLocator [as getChildLocator] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:5038:13)
at _3.canvas_getLocatorInternal [as getLocatorInternal] (http://127.0.0.1:8888/XYZ/sc/modul...re.js:5028:105)
at _3.canvas_getLocatorInternal [as getLocatorInternal] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:5028:62)
at _3.canvas_getLocatorInternal [as getLocatorInternal] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:5028:62)
at _3.canvas_getLocatorInternal [as getLocatorInternal] (http://127.0.0.1:8888/XYZ/sc/modul...ore.js:5028:62)
at _3.canvas_getLocator [as getLocator] (http://127.0.0.1:8888/XYZ/sc/modul...re.js:5025:209)
Can you please help me why am I getting this error and what is wrong with my TileGrid setting?
Comment