SMART datagrid v.1 > Examples

[ grids ver.1.3.6]   Back  Forward

Selection Display  Example

如果将DisplayOptions.selectDisplay指定为CELL, 就会替代使用不透明掩码而显示数据单元格的选择区域的方式, 将会使用GridStyles.selectedBackgroundselectedColor并以单元格为单位而显示选择状态。 

(变更设置后,重新进行选择。)
Grid - 1
rows

如果是选择单个单元格的情况,就会根据样式进行显示。 

如果是CELL,将会通过GridStyles.selectedBackgroundselectedColor而绘制所选单元格。 

   

Code -1
    grid.loadStyles({
        body: {
            cell: {
                selectedBackground: undefined,
                seleectedColor: undefined
            }
        }
    });
合并单元格选择

虽然网格的选择区域基本上都是以行为标准而设置的,但是如果将DisplayOptions.mergedSelection设置为true, 就会以合并单元格为标准而设置选择区域。 

Grid - 2
rows

以合并单元格为标准,设置选择区域。 

查看源代码 JSP 

See Also
DisplayOptions.selectDisplay
DisplayOptions.showSingleSelection
DisplayOptions.mergedSelection
Examples
Selection
合并单元格选择