﻿<?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 - WebGrid: Handling BindingOperationMode="ClientBinding" using WebService mode</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebGrid-Handling-BindingOperationModeClientBinding-using-WebService-mode/</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>WebGrid: Handling BindingOperationMode="ClientBinding" using WebService mode</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebGrid-Handling-BindingOperationModeClientBinding-using-WebService-mode/</link><pubDate>Tue, 12 Oct 2010 23:10:35 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebGrid BindingOperationMode</category><description>&lt;p&gt;Some client binding sample with web service is already provided in the WebGrid sample which you could view and analyse. These samples are:&lt;/p&gt;&lt;p&gt;- ClientBinding_BatchUpdate.aspx&lt;br /&gt;- ClientBinding_Paging.aspx&lt;br /&gt;- ClientBinding_VirtualGroupPaging.aspx&lt;br /&gt;- ClientBinding_WebService.aspx&lt;/p&gt;
&lt;p&gt;Regarding the select parameter, you could use the Tag property in the SelectDataSourceArguments object. You will need to set the property during the selecting client side method and parse the Tag property during the select server side event. Here is the snippet:&lt;/p&gt;
&lt;p&gt;Selecting client side event:&lt;/p&gt;&lt;pre&gt;&amp;lt;script type="text/javascript" language="javascript"&amp;gt;&lt;br /&gt;    function GetCustomers_Selecting(control, selectArguments) {&lt;br /&gt;        selectArguments.Tag = "CategoryID=1;";&lt;br /&gt;    } &lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt;Client binding settings:&lt;/p&gt;&lt;pre&gt;&amp;lt;ClientBindingSettings DataSourceType="WebService" ServiceUrl="WebService.asmx"&amp;gt;&lt;br /&gt;    &amp;lt;ServiceEvents Selecting="GetCustomers_Selecting" /&amp;gt;&lt;br /&gt;    &amp;lt;ServiceMethods SelectMethod="GetProducts" /&amp;gt;&lt;br /&gt;&amp;lt;/ClientBindingSettings&amp;gt;&lt;/pre&gt;
&lt;p&gt;Select method definition:&lt;/p&gt;&lt;pre&gt;[WebMethod]&lt;br /&gt;public object GetProducts(DataSourceSelectArguments selectArguments)&lt;br /&gt;{&lt;br /&gt;    string selectParam = selectArguments.Tag;&lt;br /&gt;&lt;br /&gt;    //Process selection&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid: Handling BindingOperationMode="ClientBinding" using WebService mode</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebGrid-Handling-BindingOperationModeClientBinding-using-WebService-mode/</link><pubDate>Tue, 12 Oct 2010 00:29:52 GMT</pubDate><dc:creator>mmikaeel2</dc:creator><category>WebGrid BindingOperationMode</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&gt;Hi,&lt;/p&gt;

&lt;p&gt;    I've a grid and setup
BindingOperationMode="ClientBinding"&lt;/p&gt;

&lt;p&gt;     And I want to use a Web-Service to handle the
database part for read/write/update/insert&lt;/p&gt;

&lt;p&gt;     So for the read, I want o pass parameters to filter
the reading query.&lt;/p&gt;

&lt;p&gt;     I couldn't find a &lt;span type="sp" style=""&gt;sample &lt;/span&gt;to use
BindingOperationMode="ClientBinding", with Web-Serive and &lt;span type="sp" style=""&gt;passing&amp;nbsp;parameters&lt;/span&gt;.
So I need &lt;span type="sp" style=""&gt;your &lt;/span&gt;help
pls.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Maged&lt;/p&gt;

&lt;p class="MsoNormal"&gt; &lt;/p&gt;
</description></item></channel></rss>