> Java > java지도 시간 > 본문

Extjs에서 GridPanel 열 헤더 정보 및 데이터를 동적으로 수정하는 방법

巴扎黑
풀어 주다: 2017-07-23 14:29:41
원래의
2426명이 탐색했습니다.
           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                                   });
로그인 후 복사

위 코드 조각은 필요에 따라 그리드 패널 열 헤더를 동적으로 변경하고 정보를 표시하는 방법입니다. 개인 요약을 다시 인쇄할 경우 출처를 표시해 주세요. 감사합니다

위 내용은 Extjs에서 GridPanel 열 헤더 정보 및 데이터를 동적으로 수정하는 방법의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿