Ticket S32723
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Usability - Make it possible to hide Clear Action via the application model

PropertyEditors.Lookup.Web - create public properties for controls, which are used in web property editors (buttons, dropdowns etc.)

created 16 years ago

For example, it is useful to have access to the Clear and Add buttons of the ASPxLookupDropDownEdit, which is used in the ASPxLookupPropertyEditor.
See Also:
How to hide New button on ASPxLookupPropertyEditor
Anatol

Comments (1)
Dennis Garavsky (DevExpress) 14 years ago

    Hello,
    The ASPxLookupDropDownEdit class also already provides the DropDown property, allowing you to access its underlying ASPxComboBox. Accessing this property is required to accomplish numerous customizations of ASPxLookupPropertyEditor:
    http://search.devexpress.com/?q=DropDown+ASPxLookupPropertyEditor&p=T4%7cP2%7c54&d=2
    We do not provide public properties that would allow you to directly access the New and Clear buttons themselves, because we are not aware of useful scenarios with them. The only useful scenario we are aware of is the scenario when it is necessary to hide the New or Clear buttons to prevent the creation/clearing objects via the lookup. The ASPxLookupDropDownEdit class, which is used along with ASPxLookupFindEdit in various display modes of ASPxLookPropertyEditor, already provides the AddingEnabled and ClearingEnabled properties for that. This property can be set in code as shown at How to hide New button on ASPxLookupPropertyEditor.
    In addition, you can do the same thing without even writing even a single line of code. Just invoke Model Editor, and then navigate to a required LookupListView for the class of your lookup property.
    After that, set its AllowNew property to False. That's it.
    The above functionality is already available in current XAF versions, and so I am closing the current suggestion.
    If you experience other useful scenarios where it is helpful to directly access underlying properties of PropertyEditors, just let us know. We will be glad to review your cases and improve our products, if required.
    Thanks,
    Dennis

    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.