This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I am giving up on the Telerik PropertyGrid (TPG) because of this limitations
I have a invested a lot of time in the Telerik PropertyGrid and I am trying to reuse as much code as possible. Is there a event when nodes are auto generated? in TGP I am doing this:
Hope that someone can help me. (Is it me or is it not possible to search this forum?) |
|
|
Hello Martin Thank you for trying out our WPF PropertyGrid, I'm sure you'll find it much more flexible for your application than what you were using before :) Currently there isn't a hook for when the PropertyGrid is automatically generating nodes. The PropertyGrid does however support types that extend ICustomTypeDescriptor which is a WPF mechanism for describing what properties a class exposes. This would let you control what properties do or do not get displayed by the PropertyGrid. This would be relatively simple to implement if you either don't have many types that you need this custom logic for, or if you are already using custom type descriptors. The PropertyGrid also supports the [Category] and [DisplayName] property attributes. Editor templates can be set using the PropertyGrid.Editors property. (You can see examples of this in provided samples). If it sounds like this workaround is not going to be easy to quickly add to your application, please let me know and I'll have a look at adding a hook for this scenario. If you don't know already: we ship new features in "nightly builds". So once a feature is implemented, it will be available to you the next day - no need to wait for monthly/quarterly releases. Also, please note we have recently released version 6.0. If you started you trial recently, then you should already have version 6.0. If not, it is recommended you get it: http://www.mindscapehq.com/products/wpfelements Hope to hear back from you soon. Jason Fauchelle |
|