首页 > 其他分享 >gridpanel header click

gridpanel header click

时间:2022-11-04 10:24:18浏览次数:55  
标签:gridpanel JSON myGrid header Ext renderTo click

var myGrid = Ext.Create('Ext.grid.Panel', {
    renderTo: 'shrGrid',
    renderTo: myGrid,
    store: myStore, //JSON object
    columns: myGrid.columns, //JSON object
    viewConfig: {
         listeners: {
            render: function(component) {
                 Ext.get('headerid').on('click',function() { //reference the id you defined for the column header
                     alert('header clicked');
                 });
            }
        }
    }
});

 

var myGrid = Ext.Create('Ext.grid.Panel', {
    renderTo: 'shrGrid',
    renderTo: myGrid,
    store: myStore, //JSON object
    columns: myGrid.columns, //JSON object
    viewConfig: {
         listeners: {
            render: function(component) {
                 Ext.get('headerid').on('click',function() { //reference the id you defined for the column header
                     alert('header clicked');
                 });
            }
        }
    }
});

标签:gridpanel,JSON,myGrid,header,Ext,renderTo,click
From: https://www.cnblogs.com/wkk2020/p/16856807.html

相关文章

  • java.lang.IllegalArgumentException: Request header is too large
    该问题出现于接口使用get请求,参数的长度太长导致的问题,修复方案,将该接口的请求方式又get请求换成post请求即可进一步分析,两者都是http的请求方式,根本原因是浏览器和web服......
  • ClickHouse(09)ClickHouse合并树MergeTree家族表引擎之MergeTree详细解析
    目录建表数据存储主键和索引在查询中的表现主键的选择选择与排序键不同的主键索引和分区在查询中的应用部分单调主键的使用跳数索引可用的索引类型并发数据访问列和表的TT......
  • golang封装http get函数请求并且携带header头信息
    有遇到这种需求,golang发送GET请求,携带header头信息,比如header里带着验证token封装函数如下://Get请求携带headerfuncGetWithHeader(urlstring,headersmap[string]st......
  • 快速创建软件安装包-ClickOnce
    大家好,我是沙漠尽头的狼。.NET是免费,跨平台,开源,用于构建所有应用的开发人员平台。今天介绍使用ClickOnce制作软件安装包,首先我们先了解什么是ClickOne。1.什么是Clic......
  • 给onchange的值 加个点击按钮click
    onchange可以用$("#idoption:selected").val()得到选中下拉框的值,然后再给这个值加个点击事件,,开始我将点击事件写在onchange事件里面,这个是错误的,正确的应该是定义一个全......
  • 赏金猎人系列-你所不知道的CRLF-header中潜藏的漏洞
      你所不知道的CRLF-header中潜藏的漏洞声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由用户承担全部法律及连带责任,文章......
  • 2022-10-24 ClickHouse 源码解析-查询引擎经典理论
    ​​ClickHouse源码解析:综述​​​​ClickHouse源码解析:MergeTreeWrite-Path​​​​ClickHouse源码解析:MergeTreeRead-Path​​ClickHouse源码解析:查询引擎......
  • Clickhouse之集群操作
    查看集群:在任意一台机上,使用/usr/bin/clickhouse-client--hostlocalhost--port9000连接本地服务器select*from`system`.clusters; 建库:SHOWDATABASESSHOWCREA......
  • 解决Button Click事件后自动刷新页面问题
    最近练习老师留下的一个项目,在整合完springboot,mybatis等框架后将数据返回到前端返回的数据为String类型前端是button的设置的click事件执行ajaxbutton 运行起......
  • 用jq替换原本页面中有得onclick点击事件
    <script>//javascript:location.href='/ServiceAction/com.velcro.workflow.workflow.servlet.WfViewAction?workflowid=e4e48163822a84e40182a5c82505186a&viewmode=0&......