Ticket Q415984
Visible to All Users

Can't change Caption of an event in TcxScheduler

created 13 years ago

How to change Caption of an event in TcxScheduler? I have tried the following code:

Delphi
cxScheduler.SelectedEvents[i].Caption := 'X'; cxScheduler.Invalidate;

But Caption is obsolete until current event will be changed.
Also if you try to edit Caption by inplace editor and then cancel edit mode you'll see an obsolete value again.
The correct caption should be on the screen and on the related DataSet to save data.
Thanks a lot for the help!

Comments (1)

    This question is urgent. Thanks.

    Answers

    created 13 years ago (modified 13 years ago)

    Hello,
    This behavior is caused by the fact that you changed the caption of the control event, but not the TcxSchedulerEvent item itself. I suggest you use the following code, instead:

    Delphi
    if cxScheduler.SelectedEventCount > 0 then cxScheduler.SelectedEvents[0].Source.Caption := 'X';
      Comments (1)

        Thanks for the answer.

        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.