在项目中会遇到在grid右下角显示合计之类的显示。

之前使用过的方式:

1.用width强制顶过去。

2.利用css来控制。

弊端:

利用第一种方式:导致调整窗口大小时会导致合计不能根据窗体的大小变化来自适应。

利用第二种方式:通过css设置。float: right;   会导致如果本页面增加了一个控件以后就得去修改id。

翻看了api,发现有一个fbar。尝试了一下:果然好使。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoMAAAGlCAIAAAAOEWtvAAAgAElEQVR4nO3dP2/b2p/ncZZ5DlNznkKAlIsUAthuNUAqAbpBOqZzIyDYxkjgIo0hsIsN3TwAwQjiLsAvdKtpXGyM3dzsYhN7xzs7vkCY4nd/moLk4flLkRKlI1HvF4J7bYoiKVLmR9/DI55gUbr78x+3D//48R//+P7///F//v2v//3vf/2v//fXt/u//rj/6+u//fU//+2v//F//7q5+/uX27//9x9/XwAAgC4E4ieSGACA7SOJAQDwiSQGAMCnJUl8eXn5z//yryQxAAAbUpfEl5eXwT+dB/90ThIDALAhziTOY/jkwy+SGACAzbEnsYjh/3q2IIkBANgcSxLLMfxf/hs1MQAAG2RJ4n/+l3/NLw+LfyQxAAAbwreYAADwiSQGAMCnjpP4y7s3jx6/fPT45ZN3H58/fvno2ccvm34FXz8+efzyUfHv/EP1wPe3z14+/6TNbZ3Y0h+///bb7394WPvfjp8+ffr06W+///HH7789ffr06dPjv628MADAbug2iedS+s63kcSfzh89lrLt0/mjx2/efs1/6SJ0F3nWyhErBfG21/6346fiI8Bi8cfvv5HEALD/9jqJLWn35d2bcqUbSmIRxNtfO0kMAD3UYRJ/f/tMtNO+efu1SOK3r4qJVSwpLbqiiMznf/NEb+ZdLPQIkpejz7n4+vFJsczvb5+9fP7qvGwt/y42styS+XOzVVnatuef5HnEdv7tON8UD2sniQGghzZcE0uxVP48f/745aNX89r5m/l0bqu558+LGPv+9pmycDFR/UEuZMVsUtBqifu34yL+PKydJAaAHtpW67R2SVUpoPOkad+a3SALxRo/vMrjv5yoJNz8ef4JwLpANYlFEPtYO0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9iXqjPqx7I17/vbZ6LjqPyzs++0/Rsgn871W4h8Old6Pps9ZYrNyJ8lrdp1fqzaBo2sGc9WTWK5RhkMit5b5cy2K3yd1cR63+mqbfrF+8/FrCslsdOaNXG5jMFgMBhP5LKtXIKjkOs0ibfxTqtp8K2aAvKObFUrilqWWvrJmYlp9u4SnbmsnwG1dghpS619xOwfGoC+2qXvE/eU1EJqqcXUc2ZZnLlKQrl5b15+H9YMFSXdc9UZznoCrFa5jYbCxkksfW5xn5jtSVy8Iml3mt/H0bJ3WceunWerieUXVdb8Umv0Yj43L/xqe9Tx1aU8jMXy9S+ZKe9a/WOoO5SpiXGISGIAAHwiiQEA8IkkBgDAJ5IYAACfSGIAAHwiiQEA8IkkBgDAJ5IYAACfSGIAAHwiiQEA8IkkBgDAJ5IYAACfSGIAAHwiiQEA8KlK4q8AAGDrgpqUBgAAm0YSAwDgE0kMAIBPJDEAAD79J6M6HFVJvJCEAAAAAElFTkSuQmCC" alt="" />

默认靠右展示。

var store = new Ext.data.JsonStore({
url: 'xxx',
root: 'Table',
totalProperty: 'result',
fields: [
{ name: 'Test1' },
{ name: 'Test2' }
]
});
new Ext.grid.GridPanel({
autoWidth: true,
height: 290,
store: store,
enableHdMenu: false,
enableColumnMove: false,
enableColumnHide: false,
frame: true,
cm: new Ext.grid.ColumnModel([
{ header: "Test1", width: 100, align: 'left', dataIndex: 'Test1' },
{ header: "Test2", width: 80, align: 'left', dataIndex: 'Test2' }
]),
buttonAlign: 'left', //用于fbar显示正常。
fbar: [{
xtype: 'label',
html: '<p style="color:red">注:提示文字靠左显示,需要写上buttonAlign属性,否则即使把文字描述写了->前也无效</p>'
}, '->', {
xtype: 'label',
text: '合计数量:'
}, {
xtype: 'textfield',
id: 'TotalQuantity',
readOnly: true,
width: 100
}, {
xtype: 'label',
text: '总合计(元):'
}, {
xtype: 'textfield',
id: 'TotalAmount',
readOnly: true,
width: 100
}],
sm: new Ext.grid.CheckboxSelectionModel({ singleSelect: false }),

Extjs3笔记 fbar的更多相关文章

  1. git-简单流程(学习笔记)

    这是阅读廖雪峰的官方网站的笔记,用于自己以后回看 1.进入项目文件夹 初始化一个Git仓库,使用git init命令. 添加文件到Git仓库,分两步: 第一步,使用命令git add <file ...

  2. js学习笔记:webpack基础入门(一)

    之前听说过webpack,今天想正式的接触一下,先跟着webpack的官方用户指南走: 在这里有: 如何安装webpack 如何使用webpack 如何使用loader 如何使用webpack的开发者 ...

  3. SQL Server技术内幕笔记合集

    SQL Server技术内幕笔记合集 发这一篇文章主要是方便大家找到我的笔记入口,方便大家o(∩_∩)o Microsoft SQL Server 6.5 技术内幕 笔记http://www.cnbl ...

  4. PHP-自定义模板-学习笔记

    1.  开始 这几天,看了李炎恢老师的<PHP第二季度视频>中的“章节7:创建TPL自定义模板”,做一个学习笔记,通过绘制架构图.UML类图和思维导图,来对加深理解. 2.  整体架构图 ...

  5. PHP-会员登录与注册例子解析-学习笔记

    1.开始 最近开始学习李炎恢老师的<PHP第二季度视频>中的“章节5:使用OOP注册会员”,做一个学习笔记,通过绘制基本页面流程和UML类图,来对加深理解. 2.基本页面流程 3.通过UM ...

  6. NET Core-学习笔记(三)

    这里将要和大家分享的是学习总结第三篇:首先感慨一下这周跟随netcore官网学习是遇到的一些问题: a.官网的英文版教程使用的部分nuget包和我当时安装的最新包版本不一致,所以没法按照教材上给出的列 ...

  7. springMVC学习笔记--知识点总结1

    以下是学习springmvc框架时的笔记整理: 结果跳转方式 1.设置ModelAndView,根据view的名称,和视图渲染器跳转到指定的页面. 比如jsp的视图渲染器是如下配置的: <!-- ...

  8. 读书笔记汇总 - SQL必知必会(第4版)

    本系列记录并分享学习SQL的过程,主要内容为SQL的基础概念及练习过程. 书目信息 中文名:<SQL必知必会(第4版)> 英文名:<Sams Teach Yourself SQL i ...

  9. 2014年暑假c#学习笔记目录

    2014年暑假c#学习笔记 一.C#编程基础 1. c#编程基础之枚举 2. c#编程基础之函数可变参数 3. c#编程基础之字符串基础 4. c#编程基础之字符串函数 5.c#编程基础之ref.ou ...

随机推荐

  1. prefuse学习(一)用非数据库连接和xml的方式读入数据

    prefuse正常的数据源需要从ConnectionFactory中生产出来,但是如果平时不想用里面给的方法得到数据,就需要手动创造Graph里面所需要的内容两个Table 下面是我自己写的从文件中读 ...

  2. OpenCV - Operations on Arrays 对数组(矩阵)的一些操作

    Function (函数名) Use (函数用处) add 矩阵加法,A+B的更高级形式,支持mask scaleAdd 矩阵加法,一个带有缩放因子dst(I) = scale * src1(I) + ...

  3. [转]带花树,Edmonds's matching algorithm,一般图最大匹配

    看了两篇博客,觉得写得不错,便收藏之.. 首先是第一篇,转自某Final牛 带花树……其实这个算法很容易理解,但是实现起来非常奇葩(至少对我而言). 除了wiki和amber的程序我找到的资料看着都不 ...

  4. ffmpeg ffprobe ffplay

    ./ffprobe -print_format json -show_format -show_frames -select_streams v -i ../hhh.flv ./ffprobe -pr ...

  5. Java程序员的10道XML面试题

    包括web开发人员的Java面试在内的各种面试中,XML面试题在各种编程工作的面试中很常见.XML是一种成熟的技术,经常作为从一个平台到其他平台传输数据的标准.XML面试问题包括用于转换XML文件的X ...

  6. hdoj 4548 美素数

    美素数 Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 65535/32768 K (Java/Others)Total Submiss ...

  7. 在virtual pc中搭建基于ubuntu 的git环境

    1. 在virtual pc 上安装 ubuntu http://www.hanselman.com/blog/InstallingUbuntu104LTSOnWindowsVirtualPCOnWi ...

  8. Gitbook安装

    Gitbook安装 Gitbook是从NMP安装的,命令行: $ npm install gitbook -g 安装完之后,你可以检验下是否安装成功: $ gitbook -V 0.4.2 如果你看到 ...

  9. paxos 实现

    原文地址:http://rdc.taobao.com/blog/cs/?p=162 本文主要介绍zookeeper中zookeeper Server leader的选举,zookeeper在选举lea ...

  10. $_SERVER详细资料整理(转)

    PHP编程中经常需要用到一些服务器的一些资料,特把$_SERVER的详细参数整理下,方便以后使用. $_SERVER['PHP_SELF'] #当前正在执行脚本的文件名,与 document root ...