Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

TokenEdit - How to add a check box to a token

$
0
0


This example demonstrates how to add a check box to the end of a token.




The CustomTokenEdit editor implemented in this example enhances the TokenEdit editor functionality.
If you have already used TokenEdit and would like to get such a functionality in your project, you can simply substitute  TokenEdit with CustomTokenEdit.


The CustomTokenEdit editor as well as its predecessor TokenEdit  can also be used in In-place mode:




Tokens of the CustomTokenEdit editor have the CustomTokenEditToken type, which enhances the default TokenEditToken implementation with the Checked property that can be used to check / uncheck this token from code or determine whether a token is checked or not. When a token is checked / unchecked, the RepositoryItemCustomTokenEdit.TokenCheckedChanged event is raised. You can handle this event in order to notify related objects of this change. The event handler receives an argument of the TokenCheckedChangedEventArgs type containing data related to this event. 



See also:
Token Edit Control
Custom Editors
In-place Editors Overview

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>