web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Load Tab contents when tab is expanded

(0) ShareShare
ReportReport
Posted on by

HI,

I've set tabs on a form to collapsed by default using the JavaScript method:

 Xrm.Page.ui.tabs.get("tabname").setDisplayState('collapsed'); 

It works fine, but I want the contents of the tab to load only when the the user expands the tabs for performance purposes. How could I achieve this?

Thanks a lot,

Jared

*This post is locked for comments

I have the same question (0)
  • Rajkumar Rajaraman Profile Picture
    on at

    Read the following article. It explains deeply:

    www.powerobjects.com/.../crm-2011-form-load-performance-tip-collapsing-tabs

  • Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    Check TabTabStateChange in SDK

    msdn.microsoft.com/.../gg334481.aspx

  • Suggested answer
    Aiden Kaskela Profile Picture
    19,696 on at

    Hi Jared,

    The link to Power Objects has good information but if you're loading more than one iFrame than you'll be re-writing a lot of javascript. Here's a post that describes how to do the same thing but to use parameters - it'll save you a lot of time if you have multiple iFrames in your CRM instance.

    blog.cobalt.net/.../improving-performance-of-crm-forms-with-iframes

    If this helps and is what you're looking for, I'd appreciate it if you could mark this as the verified answer. If not, let me know and I'll see how I can help.

    Thanks,

     Aiden

  • Community Member Profile Picture
    on at

    Hi Guys,

    Thanks for the info.

    I understand how this could be useful for IFrames, but how could i achieve this with general fields and Sub-grids within the tab?. If I understand correctly, you set the IFrame source URL to blank and then call the Source on TabStateChange, is it possible to set a sub-grid the same way?

    Thanks,

    Jared 

  • Verified answer
    Aiden Kaskela Profile Picture
    19,696 on at

    Hi Jared,

    Fields and grids which are collapsed load in the background when your form loads, so you don't need to do anything to them to make your form load faster.

    Here's a very details post I wrote about how to use the CRM Performance Center to troubleshoot form load times to get your records to load faster. I swear I'm not just trying to push articles I wrote :) The performance center has almost no details available out there and I believe this is the most thorough, comprehensive guide you'll find.  Let me know what you think and if it helps.

    blog.cobalt.net/.../understanding-the-microsoft-dynamics-crm-performance-center

    Thanks,

     Aiden

  • Community Member Profile Picture
    on at

    Thanks Aiden,

    Appreciate the help and extra info!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans