Bug Report T313381
Visible to All Users

It is impossible to change a drop-down image of TimeEdit

created 9 years ago

I can change the DateEdit drop down button image by changing Kind to Glyph and defining an image (for example a calendar). When I do the same for a TimeEdit the drop down button image remains visible and does not change.

Because I'm using TimeEditStyle TouchUI, I would like to change the drop down icon and display a clock icon instead. How can I do that?

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    created 9 years ago (modified 9 years ago)

    Hi Maarten,

    I suggest that you set the button's Visible property to False, add a new EditorButton to TimeEdit editor, customize it and then handle TimeEdit's ButtonClick event in the following manner:

    C#
    private void timeEdit2_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { (sender as TimeEdit).ShowPopup(); }

    I have created a simple project illustrating this. Please check it.

    Let me know if you have additional questions.

      Comments (2)
      MT MT
      Maarten Terlingen 9 years ago

        Thank you, that works fine for a TimeEdit.
        How can I do the same for a RepositoryItemTimeEdit? It has no ShowPopup method. And also when I clear the button collection and add a new one with a custom image it still displays the default drop down image.
        I can change the button image for all other editors without a problem. Will this bug be fixed in the near future?

        DevExpress Support Team 9 years ago

          Hello,
          I've passed this ticket to our developers for additional research. We will update this ticket once we make any progress.
          In the meantime, you can specify the editor button which will open a dropdown window with the RepositoryItemTimeEdit.ActionButtonIndex property. Attached is a sample, illustrating this approach in action. Please review it and let me know if you need further assistance.

          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.