SMART datagrid v.1 > Examples

[ grids ver.1.3.6]   Back  Forward

Column Moving  Example

During the run time, the user can change the column location by dragging the mouse, but DisplayOptions.columnMovable should be specified as true first. In order for the user to move the column contained in the fixed area, fixedColumnMovable property should be specified as true. In addition, basically column movement is only possible in the same column group, but if specify parentChangable as true, the user can change the parent by dragging the mouse. 

These options are for user behavior, and he can directly change the column location in the script through GridColumn.displayIndex or parent property. 

   

Grid - 1
rows

If the column location is changed, GridBase.onColumnMoved event will be fired, and if the parent group is changed, onColumnParentChanged event will be fired. Event change log will be written in the memo area below. 

View Source JSP 

See Also
DisplayOptions.columnMovable
DisplayOptions.fixedColumnMovable
DisplayOptions.parentChangable
GridColumn.displayIndex
GridColumn.parent
Examples
Column Grouping
Column Resizing
Fixed Columns