locked
Rows open in "Preview" RRS feed

  • Question

  • Hi

    I want to know if there's a way to open more than one row's preview at the same time, or keep a preview openned when the other is also openned. Thanks

    Tuesday, December 28, 2010 11:49 PM

Answers

  • The only way to do this is through an unsupported hack.  You could delete lines 1229 through 1232 from the file "appgrid_defaultdata.htc"; which will effectively prevent all previews throughout CRM for all deployments from automatically collapsing when a new one is expanded.  For reference, those lines contain this script:

    else if (_oPreviewed)
    {
    collapseRow(_oPreviewed);
    }
    

    What's going on, is that the behavior file (.htc) for the grid control keeps track, internally, of the last previewed record and collapsing it when a new row is previewed.  There is no other way around this.  The scopes for these functions and the tracked record are held within this file, and inaccessible by external scripts.

    Be warned, not only will this put you in an unsupported state with Microsoft Support, but any update that overwrites this file will undo your changes.  Going forward, if you wish to see this behavior in CRM in a supported fashion, submit a product feature request to Microsoft.

     


    Dave Berry - MVP Dynamics CRM - http:\\crmentropy.blogspot.com Please follow the forum guidelines when inquiring of the dedicated CRM community for assistance.
    Wednesday, December 29, 2010 12:41 AM
    Moderator

All replies

  • The only way to do this is through an unsupported hack.  You could delete lines 1229 through 1232 from the file "appgrid_defaultdata.htc"; which will effectively prevent all previews throughout CRM for all deployments from automatically collapsing when a new one is expanded.  For reference, those lines contain this script:

    else if (_oPreviewed)
    {
    collapseRow(_oPreviewed);
    }
    

    What's going on, is that the behavior file (.htc) for the grid control keeps track, internally, of the last previewed record and collapsing it when a new row is previewed.  There is no other way around this.  The scopes for these functions and the tracked record are held within this file, and inaccessible by external scripts.

    Be warned, not only will this put you in an unsupported state with Microsoft Support, but any update that overwrites this file will undo your changes.  Going forward, if you wish to see this behavior in CRM in a supported fashion, submit a product feature request to Microsoft.

     


    Dave Berry - MVP Dynamics CRM - http:\\crmentropy.blogspot.com Please follow the forum guidelines when inquiring of the dedicated CRM community for assistance.
    Wednesday, December 29, 2010 12:41 AM
    Moderator
  • Thanks for the caution, Dave. I wouldn't want to go this route for now.
    Wednesday, December 29, 2010 1:24 AM