Show example
|
- By default all capabilities are permitted if don't collide with other settings.
- Permission settings are processed in this order:
grid, cell, cell of default row, row, default row, column, default column.
If any of the attribute has value, processing ends and the value is used.
- For whole grid you can prohibit capability in
<Cfg> tag -
Editing,
Deleting,
Selecting,
Adding,
Sorting,
Dragging,
ColMoving,
ColResizing.
- For cell you can use:
CanEdit,
CanFocus.
Not focused cell cannot be edited.
- For row you can use:
CanEdit,
CanFocus,
CanDelete,
CanSelect,
CanDrag,
CanFilter.
- For column you can use:
CanEdit,
CanFocus,
CanResize,
CanMove,
CanFilter,
CanSort,
CanHide,
CanCopy.
- You can also control permissions dynamically by JavaScript API events
OnCanEdit,
OnCanRowAdd,
OnCanRowDelete,
OnCanDrag.
|
Show data source
<Grid>
<Cfg id='Advanced3'/>
<Cols>
<C Name='A' Type='Text' Width='50'/>
<C Name='B' Type='Text' Width='50'
CanEdit='0' CanSort='0'/>
<C Name='C' Type='Text' Width='50'
CanSort='0' CanFilter='0'/>
<C Name='D' Type='Text' Width='50'
CanFocus='0' CanResize='0'
CanMove='0'/>
<C Name='E' Type='Text' Width='50'/>
</Cols>
<Head>
<I Kind='Filter'/>
</Head>
<Body>
<B>
<I CanFilter='0' A='Text' B='Text'
C='Text' D='Text' E='Text'/>
<I CanFilter='0' CanDrag='0'
CanDelete='0' A='Text' B='Text'
C='Text' CCanFocus='0' D='Text'
E='Text'/>
<I CanEdit='0' A='Text' B='Text'
C='Text' D='Text' E='Text'/>
<I A='Text' B='Text' BCanEdit='1'
C='Text' D='Text' DCanFocus='1'
E='Text'/>
<I CanFocus='0' A='Text' B='Text'
C='Text' D='Text' E='Text'/>
<I CanDelete='0' CanSelect='0'
A='Text' B='Text' C='Text'
D='Text' E='Text'/>
<I CanDrag='0' A='Text' B='Text'
C='Text' CCanEdit='0' D='Text'
E='Text'/>
<I CanSelect='0' A='Text'
ACanFocus='0' B='Text' C='Text'
D='Text' E='Text' ECanEdit='0'/>
<I A='Text' B='Text' C='Text'
D='Text' E='Text'/>
</B>
</Body>
</Grid>
|