﻿<?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 - Enabling batch update without setting PromptUnsavedChanges to true gives JavaScript error...</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Enabling-batch-update-without-setting-PromptUnsavedChanges-to-true-gives-JavaScript-error/</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>Enabling batch update without setting PromptUnsavedChanges to true gives JavaScript error...</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Enabling-batch-update-without-setting-PromptUnsavedChanges-to-true-gives-JavaScript-error/</link><pubDate>Tue, 06 Apr 2010 23:53:27 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi GS,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; I have tried your scenario and it works just fine. Please ensure that you have put those block of code inside the server side Initialize Layout of WebGrid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; I also attached you a simple sample of WebGrid using Northwind database and a button on it. After you have made any changes in WebGrid, try to click on the button. It will give us a notification regarding the unsaved data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; I hope it helps. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Enabling batch update without setting PromptUnsavedChanges to true gives JavaScript error...</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Enabling-batch-update-without-setting-PromptUnsavedChanges-to-true-gives-JavaScript-error/</link><pubDate>Thu, 01 Apr 2010 01:02:41 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(63, 63, 63); font-family: 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px; " /&gt;&lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Hello Yudi,&lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;We are using WebGrid 7.0 in SharePoint. We are rendering the grid programatically. As we wanted to access the changes both on client side and server side, we have done the following settings::&lt;/p&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 13px; "&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 13px; "&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;FYI: interSoftWebUIGrid is an instance of WebGrid 7.0.&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre style="font-family: 'courier new', tahoma; background-color: rgb(255, 252, 225); font-size: 9pt; white-space: pre-wrap; word-wrap: break-word; "&gt;interSoftWebUIGrid.LayoutSettings.StatusBarVisible = true;
interSoftWebUIGrid.LayoutSettings.AllowBatchUpdate = true;
interSoftWebUIGrid.LayoutSettings.BatchUpdateSettings.NotifyOnLostFocus = true;
interSoftWebUIGrid.LayoutSettings.BatchUpdateSettings.PromptUnsavedChanges = false;&lt;/pre&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 13px; "&gt;With these settings, when we change anything in the grid and click on any other button on the page we WILL NOT get the prompt, which is what required, but we get a JavaScript error with the message :&amp;nbsp;&lt;strong style="font-family: 'segoe ui', arial, verdana, tahoma; "&gt;Error: 'null' is null or not an object&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 13px; "&gt;Any help on this would be greatly appreciable.&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 13px; " /&gt; &lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 13px; "&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-family: 'segoe ui', arial, verdana, tahoma; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;span style="font-family: 'segoe ui', arial, verdana, tahoma; font-size: 13px; "&gt;G S&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;</description></item></channel></rss>