So my current setup is to have a TabGroupPane with multiple tabs, each tab with a XamDataGrid in it.
My problem is that when the app loads and I click on each tab, it takes around 3 - 4 seconds to load the grid.
As other posts say, subsequent loads (of the same tab) are much quicker, but the first load is the problem.
Each grid has around 25 columns, avg 100 rows
So my question is:
- Is there a way to force the grid to initialize before I click on the tab? For example If I cycle through the tabs?
I would rather take this hit when the app starts than sit there waiting as I click through the tabs.
Thanks for the solution.
This works for me.
I had the similar issue with XamDatagrid. I allready fill my collection in Viewmodel, but the XamDataGrid takes 3-4 seconds to load the first instance. Subsequent instances of XamDataGrid works fine.
I added the above code in my main application code behind file and the problem resolves now.
Thanks
Hitesh
Hello,
I have further investigated your issue. After the investigation this functionality has been determine as a new Product Idea. I have sent your Product Idea directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this Product Idea is PI12090017.
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
Hey, thanks very much for your reply.
This bit of code doesn't seem to help.
my use case:
- A grid is located on each tab
- Around 10 tabs per window (2 windows)
Clicking between the tabs for the FIRST time takes around 3 - 5 seconds to load the tab. Subsequent clicks are fine and load the tab instantly.
Please look at this post as well: http://ko.infragistics.com/community/forums/t/73280.aspx
It looks as though the first click on the tab forces the XamDataGrid to initialize it's contents. I was trying to find a way to force the XamDataGrid to initialize its contents through code - This way I can force the grid to be ready before the user even clicks on the tab.
I would be happy to post code to replicate this, however it would take a fair bit of time. If this is 100% required then I can look at providing an example.
I have further investigated your issue. Would you please implement the following code in your application’s main window code behind. This code preloads the Infragistics assemblies. This way the performance of the application should be improved.
Thread jitter = new Thread(() =>
{
AssemblyName[] assemblies = Assembly.GetExecutingAssembly().GetReferencedAssemblies();
foreach (AssemblyName asmbl in assemblies)
if (asmbl.FullName.Contains("infragistics"))
foreach (var type in Assembly.Load(asmbl).GetTypes())
foreach (var method in type.GetMethods(BindingFlags.DeclaredOnly |
BindingFlags.NonPublic |
BindingFlags.Public | BindingFlags.Instance |
BindingFlags.Static))
if (method.IsAbstract)
continue;
}
try
System.Runtime.CompilerServices.RuntimeHelpers.PrepareMethod(method.MethodHandle);
catch { }
});
jitter.Priority = ThreadPriority.Highest;
jitter.Start();
If this does not help you would you please provide me an isolated sample. I am looking forward to your post.
Hey,
This doesn't really provide me with a solution.
The problem I am facing is the first click on a tab. The Grid seems to take a while to initialize, hence the 3 - 5 second pause.
My question: Is it possible to perform this "load" or "initialization" at another time? Instead of when the grid is brought into view?
I'd like to do this initialization at the startup of the app. This way, the app may take a bit longer to start, but the first clicks on the Tabs will be instant.