Hi, does PropertyGrid support images? #945
-
Hi, does PropertyGrid support embedding images? Or can I only pop up the control that displays the picture by triggering the event? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, First, I'd like to mention that we have two property grid components: We're not actively working on the first one and are planning to deprecate it, so you should be looking at the virtualized property grid, which renders only visible properties and can performantly handle much larger number of them. There're two basic concepts that property grid renders - PropertyCategory and PropertyRecord. At this moment customizations are only allowed for PropertyRecord rendering - that can be done with these steps:
This will make the value of the property to be rendered using your custom renderer. You're free to decide how it renders the value - it can be either a link that opens a dialog, an image, or anything else. |
Beta Was this translation helpful? Give feedback.
Hi,
First, I'd like to mention that we have two property grid components:
We're not actively working on the first one and are planning to deprecate it, so you should be looking at the virtualized property grid, which renders only visible properties and can performantly handle much larger number of them.
There're two basic concepts that property grid renders - PropertyCategory and PropertyRecord. At this moment customizations are only allowed for PropertyRecord rendering - that can be done with these steps:
record.property.renderer.name
to a name of your custom renderer.