Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Different behaviour listGrid in IExplorer

$
0
0
We have a ListGrid, and have two behaviours in the same navigator IExplorer depending on which option is selected.

With document mode standard selected, we get the row grid aspect showed in Captura1.jpg, which keeps on the heigth of the row, and trim data to suspensive dots.
However:
With document mode no standard selected, we get the row grid aspect showed in Captura2.jpg, which works upside down, growing the height of the row, but keeping data visibility complete.

The same occurs in IExplorer 10 changing document mode options in similar way.

There is any way to control by code this behaviour?

Our listGrid code for what it's worth:

Code:

isc.ListGrid.create({
                autoDraw:false,
                autoFetchData:false,
                showRecordComponents: true,
                showRecordComponentsByCell: true,
                showFilterEditor:true,
                autoFitFieldWidths:false,
                wrapCells: false,
                dataSource:"ref:attevccamionalbaranesDS",
                hoverWidth:150,
                cellHeight:16,
                fixedRecordHeights:true,
                canEdit:false,
                fields:[{
                                name:"botones",
                                width:60,
                                title: " ",
                                canFilter:false
                        },{
                                name:"ALBS_ID",
                                width:80,
                                showHover:true,
                                hoverHTML: function (record, value, rowNum, colNum, grid){
                                          if ((record.IND_DECISION == "S") && (record.IND_INCIDENCIA == "S")){
                                                  return cargaCamionUIDS.getField("hover.expedicion.faltasIncidencias").title;
                                          } else  if (record.IND_DECISION == "S") {
                                                  return cargaCamionUIDS.getField("hover.expedicion.faltas").title;
                                          } else if (record.IND_INCIDENCIA == "S") {
                                                  return cargaCamionUIDS.getField("hover.expedicion.incidencias").title;
                                          } else if (record.ESTADO == "P") {
                                                  return cargaCamionUIDS.getField("hover.expedicion.pantalla").title;
                                          }else {
                                                  return cargaCamionUIDS.getField("hover.expedicion.correcta").title;
                                          } 
                                }
                        },{
                                name:"IND_PARCIALES",
                                width:40
                        },{
                                name:"SERV_ID",
                                width:35
                        },{
                                name:"CLEM_ID_RMTE",
                                width:80
                        },{
                                name:"CLRG_ID_RMTE",
                                width:80
                        },{
                                name:"CLEM_ID_CONS",
                                width:80
                        },{
                                name:"CLRG_ID_CONS",
                                width:80
                        },{
                                name:"DIRECCION_CONS",
                                width:150
                        },{
                                name:"POBLACION_CONS",
                                width:120
                        },{
                                name:"PLZS_ID_ORG",
                                title:"Org",
                                width:40
                        },{
                                name:"PLZS_ID_DES",
                                title:"Des",
                                width:40
                        },{
                                name:"TOT_BULTOS_CARGA",
                                width:60
                        },{
                                name:"NUM_BULTOS_ESCANEADOS",
                                width:60
                        },{
                                name:"NUM_BULTOS_ESC_ANTES",
                                width:60
                        },{
                                name:"PESO_CARGADO",
                                width:80
                        },{
                                name:"VOLUMEN",
                                width:50
                        },{
                                name:"IND_INCIDENCIA",
                                width:40
                        },{
                                name:"IND_GENERAR_FALTA_TOTAL",
                                width:60
                }],
                getCellCSSText: function (record, rowNum, colNum) {
                          if (record.IND_DECISION == "S") {
                                  return "background-color:#ffccff;";
                          } else  if (record.IND_FALTA == "S") {
                                  return "background-color:#FFFF99;";
                          } else if (record.IND_INCIDENCIA == "S") {
                                  return "background-color:#D0A9F5;";
                          } else if (record.ESTADO == "P") {
                                  return "background-color:#99CCCC;";
                          }else {
                                  return "background-color:white;";
                          } 
                }, 
                initialSort:[{
                                        property:"IND_DECISION",
                                        direction:"descending"
                                },{
                                        property:"CLEM_ID_RMTE",
                                        direction:"ascending"
                                },{
                                        property:"IND_INCIDENCIA",
                                        direction:"descending"
                                },{
                                        property:"ALBS_ID",
                                        direction:"ascending"
          }],
          canExpandRecords: true,
          expansionMode: "related",
          detailDS:"ref:attevccamionbultosDS",
          expansionCanEdit : false
});

Thanks in advance.

We are working under:
v9.1d_2014-02-22/PowerEdition Development SC and IExplrorer 10.0.9200 navigator, Eclipse Helios and Tomcat 7.0.28

Attached Images
File Type: jpg Captura1.JPG (105.7 KB)
File Type: jpg Captura2.JPG (109.5 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles