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

CustomEditor : How to create a custom ButtonEdit that allows displaying RTF/HTML readonly content

$
0
0

This example demonstrates how to create an editor that allows displaying rich content and buttons at the same time.

In this example we have created a RepositoryItemButtonEdit descendant with an additional RichEdit property. The RichEdit property is a RepositoryItemRichTextEdit object. It is used to draw the editor content in a required document format.

In addition, the RepositoryItemRichTextEdit object is used to calculate the row height when this editor is used as an inplace editor in GridControl or TreeList. To enable the auto height calculation feature, the editor should implement the IAutoHeightControl interface, and its ViewInfo should implement the IHeightAdaptable interface.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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