今天遇到了一个勾选GridPanel里面某行总是不对的问题,研究了store的数据结构发现没什么问题,猜测是不 […]
网页window的大小与屏幕匹配
网页可见区域宽:document.body.clientWidth 网页可见区域高:document.body […]
Ext.EventObject is undefined 使用viewport布局
west treePanel 中链接资源页面,点击资源页面后 center :tabPanel区域显示资源页面 […]
Ext中TreePanel控件和TabPanel控件搭配测试
在实际的项目中,左边树形菜单,提供各种功能点击,右边一个面板,随着左边节点的选择表现不同的功能内容,这是一个相 […]
ExtJS+FusionCharts结合的两种方法
ExtJS+FusionCharts结合的两种方法如下: 一、使用FusionCharts.js [crayo […]
ExtJS的listview显示复选框
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
<script type="text/javascript"> Ext.onReady(function() { Ext.BLANK_IMAGE_URL = 'blank.gif'; var genres = new Ext.data.SimpleStore( { fields: ['id', 'genre'], data: [ ['1', 'Comedy'], ['4', 'Drama'], ['3', 'Action'] ] }); var list1 = new Ext.list.ListView( { store: genres, width: 120, hideHeaders: true, selectedClass: 'x - list - selected', multiSelect: false, singleSelect: true, columns: [ { dataIndex: 'id', tpl: '<input type="checkbox" id="{id}"></input>', width: .2 }, { dataIndex: 'genre', tpl: '{genre}', width: .5 }] }); var myPanel = new Ext.Panel( { renderTo: Ext.get('div_formPanel'), layout: 'hbox', autoWidth: true, autoHeight: true, id: 'myP', autoScroll: true, items: [list1] }); }); </script> |
Ext之扩展Ext.ux.form.LovCombo使用
??? 最近学习使用Ext做些东西,有时候找到现成的,但却不知道如何使用。比如前几天在项目中有个多选下拉框的要 […]
ExtJs之combobox
1.服务器数据作为ComboBox的数据源实例 首先从服务器获取json数据: //cs后台代码,简单起见,示 […]
团队交流技巧,看你在团队中如何?
团队建设,简单讲就是:给你一拨人,你得能把他们拢在一起,朝着一个方向走。怎么做呢?下面就把个人实践中,认为应该 […]