Hi,
I have a problem storing both RadGridView and RadDocking to IsolatedStorage. When I just have the grid it works fine, but when I add in the docking it doesn't work. I copied the demos online with the CustomProperties, but it still isn't working use both of them. I have a storage id for RadDocking with serialization tags for both panes, and I have a storage id for the grid.
For the grid I have:
This works for when the user loads the grid, the data is loaded. However if I do something similar for RadDocking, it doesn't remember:
If I could get an attachment of a project demonstrating how to store both when both load at different times from IsolatedStorage, that would be great.
[edit]The grid doesnt remember anything and the docking control literally blinks when they both are in my solution[/edit]
Oh yea, I forgot to mention I am using the RadGridView in one of the panes that in the documenthost.
Thanks,
Bryce
I have a problem storing both RadGridView and RadDocking to IsolatedStorage. When I just have the grid it works fine, but when I add in the docking it doesn't work. I copied the demos online with the CustomProperties, but it still isn't working use both of them. I have a storage id for RadDocking with serialization tags for both panes, and I have a storage id for the grid.
For the grid I have:
ServiceProvider.RegisterPersistenceProvider<ICustomPropertyProvider>(typeof(RadGridView), new GridViewCustomPropertyProvider());
Application.Current.Exit += (_, __) =>
{
try
{
using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
// 0.1 MB of isolated storage space is needed
var spaceNeeded = 1024*1024*0.1;
if (store.AvailableFreeSpace <
spaceNeeded
)
{
store.Remove();
}
IsolatedStorageProvider
provider
=
new
IsolatedStorageProvider();
provider.SaveToStorage();
}
}catch(IsolatedStorageException){}
};
radGridView.Loaded += (_, __) =>
{
try
{
using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
// 0.1 MB of isolated storage space is needed
var spaceNeeded = 1024 * 1024 * 0.3;
if (store.AvailableFreeSpace < spaceNeeded)
{
store.Remove();
}
}
IsolatedStorageProvider provider = new IsolatedStorageProvider();
provider.LoadFromStorage();
}
catch (IsolatedStorageException)
{
}
};
This works for when the user loads the grid, the data is loaded. However if I do something similar for RadDocking, it doesn't remember:
ServiceProvider.RegisterPersistenceProvider<
ICustomPropertyProvider
>(typeof(RadDocking), new DockingCustomPropertyProvider());
Application.Current.Exit += (_, __) =>
{
try
{
using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
// 0.1 MB of isolated storage space is needed
var spaceNeeded = 1024 * 1024 * 0.1;
if (store.AvailableFreeSpace <
spaceNeeded
)
{
store.Remove();
}
IsolatedStorageProvider
provider
=
new
IsolatedStorageProvider();
provider.SaveToStorage();
}
}
catch (IsolatedStorageException) { }
};
radDocking.Loaded += (_, __) =>
{
try
{
using (var store = IsolatedStorageFile.GetUserStoreForApplication())
{
// 0.1 MB of isolated storage space is needed
var spaceNeeded = 1024 * 1024 * 0.3;
if (store.AvailableFreeSpace < spaceNeeded)
{
store.Remove();
}
}
IsolatedStorageProvider provider = new IsolatedStorageProvider();
provider.LoadFromStorage();
}
catch (IsolatedStorageException)
{
}
};
If I could get an attachment of a project demonstrating how to store both when both load at different times from IsolatedStorage, that would be great.
[edit]The grid doesnt remember anything and the docking control literally blinks when they both are in my solution[/edit]
Oh yea, I forgot to mention I am using the RadGridView in one of the panes that in the documenthost.
Thanks,
Bryce