FlexGrid: HowTo to recognize CancelEdit?

Posted by: andreas.kren on 22 December 2020, 4:07 am EST

    • Post Options:
    • Link

    Posted 22 December 2020, 4:07 am EST

    Hi, is there sth like a “CancelEdit” Event? Cant find it.

    When I for example start sth with “StartEdit” I must cancel it, when user is cancelling EditMode …

    Thanx

  • Posted 22 December 2020, 5:10 am EST

    test

  • Posted 22 December 2020, 7:12 pm EST

    Hi Andreas,

    the event “LeaveEdit” is fired when the user “commits” editing, and it is also fired when editing is canceled.

    It seems that you can detect whether editing was finished or canceled by checking the property “C1FlexGrid.Editor”: it is null in case of a cancel and not null in case of a real editing.

    But this is only an assumption found by testing it.

    You can cancel editing programmatically by calling “FinishEditing(true)”

    Hope this helps

    Wolfgang

  • Posted 22 December 2020, 7:59 pm EST

    Hi,

    As I can understand you need an event that fires when the user exits EditMode. FlexGrid has a LeaveEdit event which is fired whenever a cell exits EditMode. If you mean something else then please provide us with your use case so that we can help you better.

    @Wolfgang, thank you for your suggestions.

    Regards,

    Prabhat Sharma.

  • Posted 23 December 2020, 2:33 am EST

    Thanx Wolfgang! Exactly what I was searching for! Frohe Weihnachten!

    Thanx Prabhat Sharma, merry Christmas

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels