例如,如果你的报表显示产品销量情况,而你想在表格的右侧增加一个图表,那么你就可以增加一个一行两列的网格元素来完成这个任务。
For example, if your report is displaying product sales and you want a chart representation to the right of your table data, you would add a grid element with one row and two columns.
该属性指定组件在网格的行方向上应占用的单元格数量。
This attribute specifies the number of cells in the grid row that the component should occupy.
如果使用其他HTML元素,那么每个子元素成为网格中的一行。
If other HTML elements are used, then each child element becomes a row in the grid.
排序之前,第4行是展开的,树型网格记住了这个状态。
Before the sorting action, the fourth row is expanded and the tree grid remembered it.
GridBlox是一个表形网格,可以以行-列的格式显示关系型或多维数据,类似于电子表格。
A GridBlox is a tabular grid that can display relational or multidimensional data in a row - and-column format, similar to a spreadsheet.
它的gridx和gridy值都是0,表明文本字段显示区最左边的角应该从网格的第一行、第一列开始。
Its gridx and gridy values are both 0, which indicate that the leftmost corner of the text field's display area should begin in the first row and first column of the grid area.
但是我们需要的是动态选项,以便对于网格表的每一行提供不同的选项,因此,我们必须进行一些定制。
We needed dynamic options that can be different for every row of the grid table, so we must do a few customizations.
第一个文件展示了正常的网格表操作,在一个非常简单的应用程序内所有行均有相同的选项;而第二个文件则展示了定制网格编辑器的使用。
The first file demonstrates normal grid table operation with the same options for all rows in a very simple application, while the second illustrates the use of a custom grid editor select.
图1展示了一个在网格成员之间复制一些行映像的网格。
Figure 1 illustrates a grid where row images are replicated among members of the grid.
如果将所扩展的模型信息保留在实际的网格模型之外,那么在网格模型内修改的行放到网格之外的数据中时很可能不会如预期的那样。
If you keep your extended model information outside the actual grid's model, the row you modified in the grid model may not be the row you think it is in your data outside the grid.
单元格类型还有一个属性,它根据行、列和子网格限制表示这个单元格是否有效,见图7。
The cell type also has an attribute that represents whether the cell is valid based on the row, column, and grid requirements, as shown in Figure 7.
网格按行或按列排列,它反映硬盘存储数据的方式。
Cells are arranged in rows and columns, which mirrors the way a hard drive stores data.
通过将标准网格视图换成缓存视图,只改了一两行代码,程序运行如常。
By swapping out the standard grid view for the buffered view, the application performed as it should by only changing a line or two of code.
下一行内容与之前相类似,但第一列通过prepend - 1修饰符稍微与网格有所远离,如清单6所示。
The next row of content is similar to the previous, but the first column is pushed slightly off the grid with the prepend-1 modifier, shown in Listing 6.
创建一个定制的网格编辑器来返回针对所选行的选项。
Create a custom grid select editor to return the options for a selected row.
在将网格的行与网格外任何类型的模型数据相关联的时候,必须要格外小心,因为网格内的行在任何时候都可被重新排序(例如,使用sort动作)。
You must be careful about correlating the rows of the grid to any type of model data outside the grid, because the rows in a grid can be reordered at any time (for example, using a sort action).
排序之后,条目有所不同,但是属性网格仍然想要打开第4行的expando功能。
After the sorting action, the items were different, but the tree grid would still try to open the expando function of the fourth row.
最基本的一种方式是覆盖此网格select编辑器的格式化程序来返回针对所选行的选项信息。
Minimally, you can override the formatter for the grid select editor to return option information for the selected row.
重复步骤1 -3直到你觉得满意为止。如果想天衣无缝,你要把网格大小减到2才行。
Repeat steps 1-3 until you're satisfied. For a perfect fit, you will need to decrease the grid size to 2.
网格控制这篇文章中支持多达65536行和256列提出的。
The grid control presented in this article support up to 65536 rows and 256 columns.
最后我们要做的是向网格传送数据存储和栏目模型(第22-25行),执行网格,然后在数据表单中加载数据存储。
The last thing we do is to pass the Grid the data store and column model (lines 22-25), render the grid, then load in the data from our data store.
在网格的第一个空白行中,选择星号右侧的小单元格以访问下拉列表。
In the first empty row in the grid, select the small cell to the right of the asterisk to access the drop-down list.
首先我们必须告知网格xml元素为每一行数据定义了什么,在这种情况下将之命名为‘项’,见以下XML示例。
First we need to tell the grid what XML element defines each row of data, in this case it's named 'Item' as you can see from the sample XML below.
写一个四行四列的小网格绘制的程序。
Write a function that draws a similar grid with four rows and four columns.
僵尸们在网格的每一行向你的房子蹒跚而行,如果他们越过了你的防线,那么,你知道的。
Zombies shamble up the rows of the grid toward your house, and if they get past your defenses, well, you know.
僵尸们在网格的每一行向你的房子蹒跚而行,如果他们越过了你的防线,那么,你知道的。
Zombies shamble up the rows of the grid toward your house, and if they get past your defenses, well, you know.
应用推荐