﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Customize review changed screen.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-review-changed-screen/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Customize review changed screen.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-review-changed-screen/</link><pubDate>Wed, 15 Jun 2016 06:44:40 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I suspect that the iFrameElement might be null which causing the button "Accept All Changes" keep appearing.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I modified the script into following:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;var wgReviewChanges = (function ()
{
    var original_wgReviewChanges = wgReviewChanges;
    var gridId = ISGetObject("WebGrid1").Id;

    return function (gridId)
    {
        original_wgReviewChanges(gridId);

        window.setTimeout(function ()
        {
            var dlgReviewDivId = "dvWnd_Global_wnd" + gridId + "_dlgReview";
            var dlgReviewDivElement = document.getElementById(dlgReviewDivId);
            var iFrameElement = dlgReviewDivElement.getElementsByTagName("iframe")[0];
            var innerDoc = (iFrameElement.contentDocument) ? iFrameElement.contentDocument : iFrameElement.contentWindow.document;
            var acceptAllBtnElement = innerDoc.getElementById(gridId + "_btnAccept_f");

            acceptAllBtnElement.style.display = "none";
        }, 100);
    }
})();&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I have checked that adding the above script after WebGrid tag will removes the Accept All Changes button.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Should you have different result, you can try to: set the time out to be longer; or debug the script.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Customize review changed screen.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-review-changed-screen/</link><pubDate>Tue, 14 Jun 2016 14:55:24 GMT</pubDate><dc:creator>phanindra</dc:creator><description>&lt;p&gt;Thanks for the response, I used the function you provided in the aspx page, but still I'm able to see the Accept All Changes, I tried it doing within the launchreviewchanges, but innerDoc  doesn't have defintion for gridId + "_btnAccept_f" .&lt;/p&gt;&lt;p&gt;Please Let me know where the change is to be made, if I include in the aspx page, the Review All changes screen is not yet loaded, so the there would be no buttonId.&lt;/p&gt;
&lt;p&gt;So please make clear regarding the change and also the locatin of the change.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Phanindra&lt;/p&gt;</description></item><item><title>Customize review changed screen.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-review-changed-screen/</link><pubDate>Tue, 14 Jun 2016 06:38:04 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I override wgReviewChanges method and use following snippet code in order to remove the "Accept All Changes" button.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;*Note: wgReviewChanges(&lt;em&gt;gridId&lt;/em&gt;) is the method that invoked when user click the "Review Pending Changes" button (in the right-side of WebGrid's status bar).&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;var wgReviewChanges = (function ()
{
    var original_wgReviewChanges = wgReviewChanges;
    var gridId = "WebGrid1";

    return function (gridId)
    {
        original_wgReviewChanges(gridId);
                        
        window.setTimeout(function ()
        {
            var dlgReviewDivId = "dvWnd_Global_wnd" + gridId + "_dlgReview";
            var dlgReviewDivElement = document.getElementById(dlgReviewDivId);
            var iFrameElement = dlgReviewDivElement.getElementsByTagName("iframe").wndWebGrid1_dlgReview;
            var innerDoc = (iFrameElement.contentDocument) ? iFrameElement.contentDocument : iFrameElement.contentWindow.document;
            var acceptAllBtnElement = innerDoc.getElementById(gridId + "_btnAccept_f");

            acceptAllBtnElement.style.display = "none";
        }, 100);
    }
})();&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I enclosed a simple sample (as attachment) of batch update enabled WebGrid which implements the above script. Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Customize review changed screen.</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Customize-review-changed-screen/</link><pubDate>Mon, 13 Jun 2016 19:08:21 GMT</pubDate><dc:creator>phanindra</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Is there any was to hide the Accept all changes button from the review changes screen? If so please help me with the required changes, I'm currently using webgrid&amp;nbsp;v9_0_7200.&lt;/p&gt;&lt;p&gt;Please find the attached image, I want to remove the button marked in red.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Phanindra.&lt;/p&gt;</description></item></channel></rss>