We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Inherit GridEvents

Hello,

I am trying to reuse logic that should be executed for every grid using the method OnDataBound. Is there a way to inherit GridEvents (like public class CustomGridEvents<TValue> : GridEvents<TValue>) and inside the child class provide a custom implementation of  OnDataBound that contains the desired logic. Then when using the grid component we can use CustomGridEvents instead of  GridEvents.

Krasimir


2 Replies

NP Naveen Palanivel Syncfusion Team November 7, 2022 09:07 PM

Hi Ivan,  


We are currently Validating  the reported query at our end and we will update the further details shortly. Until then we appreciate your patience.


Regards,

Naveen Palanivel



NP Naveen Palanivel Syncfusion Team November 17, 2022 09:11 PM

Hi Ivan,


We checked your query and to inform you that it is not possible because the event action was dynamic and the scenario could change, and it cannot be invoked at the source level.


Please let us know if you have any concerns.


Regards,

Naveen Palanivel


Loader.
Live Chat Icon For mobile
Up arrow icon