Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
990
Setting the Checkbox.CheckState without throwing an event
posted

Hello,

we derived the checkbox and i want to add a sub like SetCheckStateSilent for setting the CheckState without fireing any event. Therefor i want to override the OnCheckStateChanged but it is not overridable. Why?

Is it possible to set the value without fireing the CheckValueChanged nor Validated event? The Validated event fires but not through the OnValidated-method.

Thank you,

Bjoern

Parents
  • 469350
    Offline posted

    Hi Bjoern,

    I just took a look and this looks like a bug to me. The OnCheckStateChanged is not virtual, so you cannot override it and prevent the event from firing.

    You can, of course, unhook the event listeners, but that only works if you happen to be in control of those listeners, so that's not an ideal solution. I am going to ask Infragistics Developer Support to create a case for you and write this up for developer review and hopefully, the OnCheckStateChanged can be made virtual in a future release.

    Regarding OnValidated, I'm not sure what you are referring to. This event is not an event defined by UltraCheckEditor, it's an event on Control, so it's part of the DotNet framework. Under what circumstances does this event fire outside of the OnValidated method?

Reply Children