﻿<?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 - Problem in accessing AcceptAllGridChanges() method using clientaction invokescript in WebGrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-in-accessing-AcceptAllGridChanges-method-using-clientaction-invokescript-in-WebGrid/</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>Problem in accessing AcceptAllGridChanges() method using clientaction invokescript in WebGrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-in-accessing-AcceptAllGridChanges-method-using-clientaction-invokescript-in-WebGrid/</link><pubDate>Wed, 14 Apr 2010 22:52:07 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;If I am not mistaken, based on your scenario, it shouldn't be called. Method inside ClientAction properties would not be called if WebGrid doesn't do any FlyPostBack.&lt;br /&gt;For testing, you can bind simple WebGrid (design) and place button click (server) to call this method.&lt;br /&gt;WebGrid would not call the method.&lt;/p&gt;
&lt;p&gt;However, if you refresh WebGrid and call the method in IntializePostBack server side event, it would be called.&lt;/p&gt;
&lt;p&gt;For your last issues, could you let me know more details such as in screenshots and simple runable sample which replicates this issue? &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Problem in accessing AcceptAllGridChanges() method using clientaction invokescript in WebGrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Problem-in-accessing-AcceptAllGridChanges-method-using-clientaction-invokescript-in-WebGrid/</link><pubDate>Wed, 14 Apr 2010 02:32:26 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p /&gt;
&lt;p class="MsoListParagraph" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 26.6pt; margin-bottom: 0.0001pt; text-indent: -0.25in; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;&lt;span style=""&gt;We are using WebGrid 7 in SharePoint Web Part where we are rendering the grid programatically. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 26.6pt; margin-bottom: 0.0001pt; text-indent: -0.25in; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 26.6pt; margin-bottom: 0.0001pt; text-indent: -0.25in; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;&lt;span style=""&gt;I am unable to invoke any client script using following command, it simply does not hit the javascriopt at all.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 26.6pt; margin-bottom: 0.0001pt; text-indent: -0.25in; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 26.6pt; margin-bottom: 0.0001pt; text-indent: -0.25in; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;interSoftWebUIGridInstance.ClientAction.InvokeScript(
"AcceptGridChanges" );&lt;o:p /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 17.6pt; margin-bottom: 0.0001pt; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: rgb(51, 51, 51); "&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 17.6pt; margin-bottom: 0.0001pt; text-indent: -9pt; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;o:p /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 17.6pt; margin-bottom: 0.0001pt; text-indent: -9pt; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;As a work around I have tried following command&lt;o:p /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoListParagraph" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 26.6pt; margin-bottom: 0.0001pt; text-indent: -0.25in; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 26.6pt; margin-bottom: 0.0001pt; text-indent: -0.25in; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;this.Page.ClientScript.RegisterStartupScript( this.GetType(),
"AcceptAllGridChanges", "AcceptAllGridChanges();", true
);&amp;nbsp;&lt;o:p /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 26.6pt; margin-bottom: 0.0001pt; text-indent: -0.25in; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 26.6pt; margin-bottom: 0.0001pt; text-indent: -0.25in; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;Following is the javascript function written in my JS File.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 26.6pt; margin-bottom: 0.0001pt; text-indent: -0.25in; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; " /&gt;&lt;/p&gt;&lt;pre&gt;function AcceptAllGridChanges()
{    
    var interSoftWebUIGrid = ISGetObject(interSoftWebUIGridClientID); 
    if(interSoftWebUIGrid != null)
    {
        interSoftWebUIGrid.AcceptAllChanges();
    }
    
}
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Two questions here.&lt;/p&gt;
&lt;p&gt;1. Why ClientAction.InvokeScript is not working ?&lt;/p&gt;
&lt;p&gt;2. When calling above javascript function using registerstartupscript method, i am getting Operation Aborted error in a javascript popup and the page becomes completely blank. Once i refreshe only after that i get to see data on my screen, what went wrong in calling AcceptAllChanges() from server side ?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p class="MsoListParagraph" style="margin-top: 0in; margin-right: 0.9pt; margin-left: 26.6pt; margin-bottom: 0.0001pt; text-indent: -0.25in; "&gt;&lt;span style="font-size: 10pt; font-family: 'segoe ui', sans-serif; color: black; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;</description></item></channel></rss>