SmartClient_SNAPSHOT_v90d_2013-04-05
All browsers
This is a minor cosmetic issue that I have encountered while testing and I thought I would pass it along in case its not the desired behavior that the grid should have.
Repro steps:
=========
1. Load the test page below
2. Create summary column with #Inspections as the value
3. Open hilite tool
4. Create highlight on # Inspections, matches other field from step #2, background color red
5. Note that # Inspections is highlighted red for all rows (correct behavior)
6. Remove summary field created in step # 2.
7. Note that the # Inspections field is still highlighted red, even though summary column has been removed (no data to compare against)
Adding another summary column with the same name or clearing the rule will clear the formatting, so it seems like there is a missing listener on the sumamry field remove event.
All browsers
This is a minor cosmetic issue that I have encountered while testing and I thought I would pass it along in case its not the desired behavior that the grid should have.
Repro steps:
=========
1. Load the test page below
2. Create summary column with #Inspections as the value
3. Open hilite tool
4. Create highlight on # Inspections, matches other field from step #2, background color red
5. Note that # Inspections is highlighted red for all rows (correct behavior)
6. Remove summary field created in step # 2.
7. Note that the # Inspections field is still highlighted red, even though summary column has been removed (no data to compare against)
Adding another summary column with the same name or clearing the rule will clear the formatting, so it seems like there is a missing listener on the sumamry field remove event.
Code:
<html> <head> <title >Chart Test Case</title> <script type="text/javascript" > var isomorphicDir="http://localhost:8080/isomorphic/"; var data = [ {inspectorID:12345, inspections:206,observations:913,lastInspectionDate:"2012-08-31",index:52.6, inspectionType: {id:123, name:"type1"}}, {inspectorID:67890, inspections:66,observations:0,lastInspectionDate:"2013-02-02",index:75.3, inspectionType: {id:123, name:"type1"}}, {inspectorID:88776, inspections:66,observations:67,lastInspectionDate:"2013-02-02",index:75.3, inspectionType: {id:123, name:"type1"}}, {inspectorID:44556, inspections:206,observations:0,lastInspectionDate:"2012-08-31",index:52.6, inspectionType: {id:123, name:"type1"}} ]; </script> <script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Core.js"></script> <script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Foundation.js"></script> <script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Containers.js"></script> <script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Grids.js"></script> <script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Forms.js"></script> <script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_DataBinding.js"></script> <script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Drawing.js"></script> <script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_PluginBridges.js"></script> <script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Charts.js"></script> <script type="text/javascript" SRC="http://localhost:8080/isomorphic/system/development/ISC_Tools.js"></script> <script type="text/javascript" SRC="http://localhost:8080/isomorphic/skins/EnterpriseBlue/load_skin.js"></script> </head> <body> <script type="text/javascript"> var gridObject = null; function applyAggregate(summaryField, fnx) { gridObject.getField("observations").summaryFunction = "sum"; gridObject.recalculateSummaries(); } gridObject = isc.ListGrid.create({ fields:[ {name:"inspectorID", title:"Inspector ID", type:"integer", summaryFunction:[] }, {name:"inspections", title:"# Inspections", summaryFunction:[]}, {name:"observations", title:"# Observations", summaryFunction:[]} ], dataFetchMode : "local", data: data, width : "100%", align : "center", autoFitData : "vertical", autoFitMaxHeight : 400, alternateRecordStyles : true, canAddFormulaFields : true, canAddSummaryFields : true, canGroupBy : true, canReorderFields : true, showGroupSummary : true, groupByMaxRecords : 5 }); </script> </body> </html>
Comment