Maison > Java > javaDidacticiel > le corps du texte

Comment modifier dynamiquement les informations et les données d'en-tête de colonne GridPanel dans Extjs

巴扎黑
Libérer: 2017-07-23 14:29:41
original
2432 Les gens l'ont consulté
           checkboxHistoryModule =              id : "alarmHistoryInfoCheck"             name : "alarmHistoryInfoCheck"                          boxLabel : "历史报警信息"                          handler:                                   (.checked==                      queryAlarmInfoHis_store = Ext.create('Ext.data.Store'                         autoLoad:                          pageSize: 50                         model: 'queryAlarmInfoHistoryData'                              type: 'ajax'                             url: 'queryAlarmInfo.do'                                  isShowHistory : "true"                                   type: 'json'                                 root: 'dataList'                                 totalProperty: 'total'                                        queryAlarmInfoHis_columns =                            [{ text: '序号', xtype:'rownumberer', width: 40                            { text: '拓扑图',  dataIndex: 'link',flex:1                                 text: '工作流ID'                                dataIndex: 'iflowid'                                flex:1                                                                renderer :                                      metaData.tdAttr = 'data-qtip="' + value + '"'                                                                      text: '工程名称'                                dataIndex: 'prjName'                                flex:1                                                                renderer :                                      metaData.tdAttr = 'data-qtip="' + value + '"'                                                                      text: '工作流名'                                dataIndex: 'flowName'                                flex:1                                                                renderer :                                      metaData.tdAttr = 'data-qtip="' + value + '"'                                                                      text: '活动名'                                dataIndex: 'actName'                                flex:1                                                                renderer :                                      metaData.tdAttr = 'data-qtip="' + value + '"'                                                                      text: '报警类型'                                dataIndex: 'type'                                width:80                                                                renderer :                                      metaData.tdAttr = 'data-qtip="' + value + '"'                                                                      text: '报警描述'                                dataIndex: 'warnDes'                                flex:1                                                                renderer :                                      metaData.tdAttr = 'data-qtip="' + value + '"'                                                                      text: '报警时间'                                dataIndex: 'warnTime'                                width:80                                                                renderer :                                      metaData.tdAttr = 'data-qtip="' + value + '"'                                                                  { text: '处理描述',  dataIndex: 'delDes',width:80                                 text: '处理人'                                dataIndex: 'delUser'                                width:80                                                                renderer :                                      metaData.tdAttr = 'data-qtip="' + value + '"'                                                                       text: '处理时间'                                dataIndex: 'delTime'                                width:80                                                                renderer :                                      metaData.tdAttr = 'data-qtip="' + value + '"'                                                                                                }                       queryAlarmInfoNotHis_store = Ext.create('Ext.data.Store'                           autoLoad:                            pageSize: 50                           model: 'queryAlarmInfoData'                                type: 'ajax'                               url: 'queryAlarmInfo.do'                                    isShowHistory : "false"                                     type: 'json'                                   root: 'dataList'                                   totalProperty: 'total'                                                queryAlarmInfoNotHis_columns =                              [{ text: '序号', xtype:'rownumberer', width: 40                              { text: '拓扑图',  dataIndex: 'link',flex:1                                   text: '工作流ID'                                  dataIndex: 'iflowid'                                  flex:1                                                                    renderer :                                        metaData.tdAttr = 'data-qtip="' + value + '"'                                                                          text: '工程名称'                                  dataIndex: 'prjName'                                  flex:1                                                                    renderer :                                        metaData.tdAttr = 'data-qtip="' + value + '"'                                                                          text: '工作流名'                                  dataIndex: 'flowName'                                  flex:1                                                                    renderer :                                        metaData.tdAttr = 'data-qtip="' + value + '"'                                                                          text: '活动名'                                  dataIndex: 'actName'                                  flex:1                                                                    renderer :                                        metaData.tdAttr = 'data-qtip="' + value + '"'                                                                          text: '报警类型'                                  dataIndex: 'type'                                  width:80                                                                    renderer :                                        metaData.tdAttr = 'data-qtip="' + value + '"'                                                                          text: '报警描述'                                  dataIndex: 'warnDes'                                  flex:1                                                                    renderer :                                        metaData.tdAttr = 'data-qtip="' + value + '"'                                                                          text: '报警时间'                                  dataIndex: 'warnTime'                                  width:80                                                                    renderer :                                        metaData.tdAttr = 'data-qtip="' + value + '"'                                                                     { text: '处理描述',  dataIndex: 'delDes',width:80                                   });
Copier après la connexion

L'extrait de code ci-dessus est une méthode permettant de modifier dynamiquement les en-têtes de colonnes du panneau de grille et d'afficher les informations en fonction des besoins. S'il est réimprimé, veuillez indiquer la source, merci

.

Ce qui précède est le contenu détaillé de. pour plus d'informations, suivez d'autres articles connexes sur le site Web de PHP en chinois!

Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal