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
|
Hi There, This is a follow up post to someone elses thread: http://www.mindscape.co.nz/forums/Thread.aspx?PostID=1487 Using the nightly build, my runtime-generated ICustomTypeDescriptor class of property descriptors is working well - except for a couple of things like Category and DisplayName. Are these attributes observed and supported by the Grid, or should I be looking more closely how my code is implemented? Thanks again. Justin.
|
|
|
Category is not directly supported. The "group by category" button on the built-in toolbar only looks at CategoryAttribute. If you return CategoryAttribute in the Attributes collection then this should work. Alternatively, you can create a custom IValueConverter that examines the Category property (via Node.Property.AsPropertyDescriptor), and apply that using custom grouping. DisplayName isn't currently supported either -- I will look into adding support for these and it should be in the next nightly -- I will confirm here later. |
|
|
Hi Justin, I have just committed a fix containing support for PropertyDescriptor-based Category, DisplayName and IsBrowsable. (Also DisplayNameAttribute.) This will be included in nightly builds numbered 20080425 or above, available from around 18:00 GMT from the store. Please let us know if you run into any problems. |
|
|
I'm impressed! Thanks for your attention... I'll try the build out when it becomes available and let you know how I get on. |
|
|
Thanks for the update Ivan... works like a charm. |
|