Ticket T1279268
Visible to All Users

TcxBarEditItem with TdxOfficeSearchBoxProperties no longer shows a modified NullString if TdxBarManager's AlwaysSaveText property is True

created a day ago

I attached a sample project.

Answers approved by DevExpress Support

created 17 hours ago

Hello,

Thank you for the project.

Do you mean that once you enter and erase a string, the editor no longer shows NullString? If so, this behavior is related to basic mechanisms: editor text becomes an empty string. Refer to the following discussion regarding this issue: Problem with NullString on ButtonEdit added on tdxBar. As a possible workaround, you can handle the OnChange event (it is public but not published) and assign null explicitly.

Delphi
procedure TForm1.DoChange(Sender: TObject); begin if not (Sender is TdxOfficeSearchBox) then Exit; if TdxOfficeSearchBox(Sender).EditingText = '' then TdxOfficeSearchBox(Sender).EditValue := null; end; procedure TForm1.FormCreate(Sender: TObject); begin TdxOfficeSearchBoxProperties(cxBarEditItem1.Properties).OnChange := DoChange; end;
    Comments (1)

      No. Just click search box with mouse and then leave it. don't push any key. you will see the exact problem.

      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.