Hi there,
We use the XamGrid as the main component of our application, and to save Grid Settings between sessions, we persist the settings to the database and retrieve it on reload.
The problem we have is that complex settings can take a while to apply to the grid, so on applying, before loading any data into the grid we have to use a rather inelegant Timer to give the grid time to re-render with the settings then apply the data.
Is there a way to capture a SettingsApplied event or something?
There is every possibility that the delay we are applying will not be sufficient in the future, as our users love the feature and will start to create more and more complicated views on the data to save.
Thanks,
Matt.
Hi Konstantin,
Thanks very much for this, it has indeed solved my issue.
I was looking for an event on the Grid rather than the persistence settings.. although it appears the grid doesn't care what it looks like. Something we could all aspire to!
Cheers,
Hi Matt,
I was wandering whether you had a chance to look at these events of the Persistence Framework and whether they work for you?
Please let me know if I can be of further assitance.
I assume that you're using Control Persistence Framework to save and restore XamGrid's state between the sessions. If my assumption is correct I suppose you could hook at PersistenceLoaded event. Check out this sample illustrating how Persistence Framework events are used.
Please let me know if you need more assistance on this.