﻿<?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 - WebDesktop - How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</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>How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</link><pubDate>Tue, 26 Oct 2010 23:16:35 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid Enterprise</category><description>&lt;p&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:WordDocument&gt;&lt;w:View&gt;Normal&lt;/w:View&gt;&lt;w:Zoom&gt;0&lt;/w:Zoom&gt;&lt;w:PunctuationKerning/&gt;&lt;w:ValidateAgainstSchemas/&gt;&lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;&lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;&lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;&lt;w:Compatibility&gt;&lt;w:BreakWrappedTables/&gt;&lt;w:SnapToGridInCell/&gt;&lt;w:WrapTextWithPunct/&gt;&lt;w:UseAsianBreakRules/&gt;&lt;w:DontGrowAutofit/&gt;&lt;/w:Compatibility&gt;&lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt;&lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Great,&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Thank you.&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</link><pubDate>Tue, 26 Oct 2010 22:14:13 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebGrid Enterprise</category><description>&lt;p&gt;You can iterate the collection using for loop. Here is a simple snippet to update a Component column for a specific row: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function Grid_BatchUpdating(gridObject, rowChanges) {&lt;br /&gt;    debugger;&lt;br /&gt;            &lt;br /&gt;    for (var i in rowChanges) {&lt;br /&gt;        currRow = rowChanges[i];&lt;br /&gt;        if (currRow.NewObject.BugId == "2875")&lt;br /&gt;            currRow.NewObject.Component &amp;#43;= "-rev";&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;You could analyse the structure in more detail using the debugger. As shown in the snippet above, you could modify the data using the NewObject property and column information.   &lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</link><pubDate>Tue, 26 Oct 2010 12:37:19 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid Enterprise</category><description>&lt;p&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:WordDocument&gt;&lt;w:View&gt;Normal&lt;/w:View&gt;&lt;w:Zoom&gt;0&lt;/w:Zoom&gt;&lt;w:PunctuationKerning/&gt;&lt;w:ValidateAgainstSchemas/&gt;&lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;&lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;&lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;&lt;w:Compatibility&gt;&lt;w:BreakWrappedTables/&gt;&lt;w:SnapToGridInCell/&gt;&lt;w:WrapTextWithPunct/&gt;&lt;w:UseAsianBreakRules/&gt;&lt;w:DontGrowAutofit/&gt;&lt;/w:Compatibility&gt;&lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt;&lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;Thanks
Glenn for your support.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;I still
need more information here.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;I need to
know how to:&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span lang="undefined" style=""&gt;&lt;span style=""&gt;   &lt;/span&gt;1- Iterate through &lt;/span&gt;row changes
collection object.&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;2- The structure of
the changes collection object on each item in the collection.&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;2- How to make
changes (if it’s possible) to some of the items/fields in the collection.&lt;/p&gt;&lt;p class="MsoNormal"&gt; &lt;/p&gt;&lt;p class="MsoNormal"&gt;Thanks,&lt;/p&gt;
&lt;span style="font-size: 12pt; font-family: &amp;quot;times new roman&amp;quot;;"&gt;Maged&lt;/span&gt;</description></item><item><title>How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</link><pubDate>Tue, 26 Oct 2010 00:46:12 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebGrid Enterprise</category><description>&lt;p&gt;I am very sorry for the misunderstanding. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;It seems the method definition is not available in the WebGrid docs, I inform our documentation team regarding this issue.&lt;/p&gt;
&lt;p&gt;Based on my test with the event handler, the BatchUpdating event handler have 2 parameter the Grid object and the row changes collection object. Here is the snippet:&lt;/p&gt;&lt;pre&gt;function Grid_BatchUpdating(gridObject, rowChanges) {&lt;br /&gt;            &lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</link><pubDate>Mon, 25 Oct 2010 01:10:50 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid Enterprise</category><description>&lt;p&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:WordDocument&gt;&lt;w:View&gt;Normal&lt;/w:View&gt;&lt;w:Zoom&gt;0&lt;/w:Zoom&gt;&lt;w:PunctuationKerning/&gt;&lt;w:ValidateAgainstSchemas/&gt;&lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;&lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;&lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;&lt;w:Compatibility&gt;&lt;w:BreakWrappedTables/&gt;&lt;w:SnapToGridInCell/&gt;&lt;w:WrapTextWithPunct/&gt;&lt;w:UseAsianBreakRules/&gt;&lt;w:DontGrowAutofit/&gt;&lt;/w:Compatibility&gt;&lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;&lt;w:LatentStyles DefLockedState="false" LatentStyleCount="156"&gt;&lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;/p&gt;This is not what I'm asking for!!!

&lt;p&gt;    I need this one: &lt;strong&gt;BatchUpdating&lt;/strong&gt; &lt;span style="text-decoration:underline;"&gt;ServiceEvent&lt;/span&gt;&lt;/p&gt;&lt;p&gt;   So in ClientBindingSettings, you can define &lt;strong&gt;BatchUpdating &lt;/strong&gt;service
events like&lt;strong&gt;:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;ClientBindingSettings ......&lt;br /&gt;
    &amp;lt;ServiceEvents
Selecting="Selecting_MembershipNotes"&lt;br /&gt;&lt;strong&gt;BatchUpdating&lt;/strong&gt;="&lt;strong&gt;&lt;em&gt;&lt;span style="text-decoration:underline;"&gt;Batchupdating_MembershipNotes&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;"/&amp;gt;&lt;br /&gt;
&amp;lt;/ClientBindingSettings&amp;gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;I need to know how to write &lt;strong&gt;&lt;em&gt;&lt;span style="text-decoration:underline;"&gt;Batchupdating_MembershipNotes&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;Please read my request carefully and please reply to me ASAP.... It’s taking
too long now.&lt;/p&gt;&lt;p&gt;Maged&lt;/p&gt;&lt;p class="MsoNormal"&gt; &lt;/p&gt;&lt;p class="MsoNormal"&gt; &lt;/p&gt;&lt;p class="MsoNormal"&gt; &lt;/p&gt;
</description></item><item><title>How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</link><pubDate>Mon, 25 Oct 2010 00:48:34 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebGrid Enterprise</category><description>&lt;p&gt;The method is implemented in the sample that I pointed out on my previous post. Since the WebGrid is using WebService.asmx, the UpdateBugs method is defined in the WebService.cs under App_Data folder.&lt;/p&gt;&lt;p&gt;Here is the UpdateBugs method I copied from the WebService.cs:&lt;/p&gt;&lt;pre&gt;[WebMethod]&lt;br /&gt;[GenerateScriptType(typeof(Bug))]&lt;br /&gt;public TransactionResult UpdateBugs(List&amp;lt;ClientRowChanges&amp;gt; changes)&lt;br /&gt;{&lt;br /&gt;    BugTrackerModelDataContext context = new BugTrackerModelDataContext();&lt;br /&gt;    WebGridDataProvider&amp;lt;Bug&amp;gt; provider = new WebGridDataProvider&amp;lt;Bug&amp;gt;(context.Bugs.AsQueryable());&lt;br /&gt;&lt;br /&gt;    return provider.BatchUpdate(changes);&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</link><pubDate>Thu, 21 Oct 2010 01:20:26 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid Enterprise</category><description>&lt;p&gt;This is suppose to be very simple question, and for two days now I'm waiting for an answer! Please Glenn give me the proper answer ASAP!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</link><pubDate>Wed, 20 Oct 2010 23:52:25 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid Enterprise</category><description>&lt;p&gt;Actually this is not what I'm looking for!!&lt;/p&gt;&lt;p&gt;I need to know  how to handle "BatchUpdating". There is NO example explains how to handle "BatchUpdatin" client API, like what parameters it takes ...etc&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I need an example that shows how to handle and write client function to handle BatchUpdating.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;For example we have this:&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;ClientBindingSettings DataSourceType="WebService" ServiceUrl="../MembershipDataService.asmx"
        DataLoadMode="AllData" ItemTypeName="MembershipNote"&amp;gt;
    &amp;lt;ServiceMethods SelectMethod="GetMembershipNotes" InsertMethod="InsertMembershipNote" /&amp;gt;
    &amp;lt;ServiceEvents Selecting="Selecting_MembershipNotes"
                   Inserting="Inserting_Note"
                   Inserted="Inserted_GridData" Updating="&lt;em&gt;&lt;strong&gt;Updating_GridData&lt;/strong&gt;&lt;/em&gt;"/&amp;gt;
&amp;lt;/ClientBindingSettings&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;So I need to know how to implement Updating_GridData() function, I need a sample pls.&lt;br /&gt;&lt;br /&gt;Maged&lt;br /&gt;
&lt;p&gt;  &lt;/p&gt;</description></item><item><title>How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</link><pubDate>Wed, 20 Oct 2010 23:24:26 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebGrid Enterprise</category><description>&lt;p&gt;A sample of client binding and batch update has been provided on the ClientBinding_BatchUpdate.aspx sample page.&lt;/p&gt;&lt;p&gt;You will need to set the BatchUpdateMethod property in the ServiceMethods of ClientBindingSettings. Here is an excerpt of the ClientBindingSettings from the sample:&lt;/p&gt;&lt;pre&gt;&amp;lt;ClientBindingSettings DataLoadMode="PagedData" DataSourceType="WebService" ItemTypeName="Bug"&lt;br /&gt;    ServiceUrl="WebService.asmx"&amp;gt;&lt;br /&gt;    &amp;lt;ServiceMethods BatchUpdateMethod="UpdateBugs" SelectMethod="GetPagedBugs" /&amp;gt;&lt;br /&gt;&amp;lt;/ClientBindingSettings&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</link><pubDate>Wed, 20 Oct 2010 10:33:28 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid Enterprise</category><description>&lt;p&gt;Any update from any one from Intersoft support team?&lt;/p&gt;&lt;p&gt;We've a dead line to deliver this project and we need you help pls.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Maged&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to implement WebGrid:BatchUpdating ServiceEvent</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/How-to-implement-WebGridBatchUpdating-ServiceEvent/</link><pubDate>Wed, 20 Oct 2010 00:15:27 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid Enterprise</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;  I've WebGrid, set BindingOperationMode="ClientBinding" and set AllowBatchUpdate="True"&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;   I need to know how to handle BatchUpdating ServiceEvent. I can't find any sample for that.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Maged&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>