TcxGridCardViewOptionsCustomize.CardExpanding Property
Specifies whether cards can be collapsed and expanded.
Declaration
property CardExpanding: Boolean read; write; default False;
Property Value
Type | Default |
---|---|
Boolean | False |
Remarks
If the CardExpanding property value is True, you can expand and collapse cards via code using the records’ Expand and Collapse methods. If you need to expand or collapse all cards within the View at once, use the View’s ViewData.Expand and ViewData.Collapse methods. A particular card’s expanded state can be obtained using the corresponding record’s Expanded property.
End-users can also expand and collapse cards. To allow this, the View displays card expand buttons within cards’ caption rows. The expand button’s horizontal alignment is specified using the Card View’s OptionsView.CardExpandButtonAlignment property.
Note
card expand buttons are displayed within the first created caption row. To create a caption row, you need to set the desired row’s Kind property to rkCaption.
The image below shows a Card View that allows end-users to expand and collapse cards.
The default value of the CardExpanding property is False.