The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
I want to hold an additional cache of data about my virtual grid in a override class of the GridControl, and whenever the volatile data is reset (via the ResetVolatileData method), I want to also reset my data cache. I noticed in the code that there was a NotifyResetVolatileData event, but it is internal not public or protected. Do you have any suggestions on how I can know when to reset my caches?
Thanks,
Sue
ADAdministrator Syncfusion Team August 6, 2004 02:54 PM UTC
Hi Sue,
if you look at the ResetVolatileData code you also see these lines:
if (gridVolatileData != null)
gridVolatileData.Clear();
This is where you can implement a hook. VolatileData is a object that you can replace.
What you should do is derive a class from GridVolatileData and override its Clear method.
You need to assign a instance of your derived volatile data object to the GridModel.VolatileData property.
Stefan