Here are real business scenarios where it would be helpful:
Change Caption of property dynamically based on boolean value (ASP.NET WebForms)
Change the label of a Property at run time
Dynamic display value for field
Set Class and Property DisplayName dinamically
These tickets also describe possible custom solutions via Controllers.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi,
that would be a great feature! We also have such a requirement, but not yet implemented it. In our case, we have an invoice bo with a detail collection of items with an amount property. The currency is determined and given by the invoice. Now we want to display the actual currency in the amount column caption of the detail collection. I.e. if an invoice detailview with "Euro" currency is opened, than the column caption of the amount property in the nested listview should be "Amount (in EUR)" or "Amount (in USD)" if the invoices currency is US Dollar.
Thanks for sharing your experience, Kim. BTW, what about the localization? How do you want to specify a text for different cultures if such a rule existed?
Yes your right, that would be necessary.
So, how would you configure it?
Well, that's a good question ;). Our thoughts lead us to the following solution: if such a rule has to work for ListViews, than it must be somehow dependent upon an owner. In cases of NestedListViews this would be the corresponding DetailView. So you should have to configure such a Rule at the DetailView object type. In the words of the example above: In the Invoice class you would have to declare a rule with the following parameters: TargetCollection:"InvoiceDetails", TargetItem:"Amount", Caption:"AmountCaptionForInvoiceDetail", Criteria:"…". The AmountCaptionForInvoiceDetail is a string property of the Invoice class. This property can build the caption with the help of the CaptionHelper. We used a similar approach for implementing the feature to hide columns in nested listviews depending on the parent object with a criteria. This should also work, if the nested listview is empty, so we have build an attribute with can be placed at the parent class.
I think if it should only works for detailviews the solution could be a bit easier.
Thanks for sharing your thoughts on this. We will take this into account.
Take my 1,000,000 Likes.
+1 for this feature