﻿<?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 - Client Binding with WCF Service pass parameters</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Client-Binding-with-WCF-Service-pass-parameters/</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>Client Binding with WCF Service pass parameters</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Client-Binding-with-WCF-Service-pass-parameters/</link><pubDate>Fri, 08 Oct 2010 11:40:56 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;OK - Yudhiy solved this for me - I had to replace the &amp;lt;!DocType.. and &amp;lt;html.. tags with just &amp;lt;html&amp;gt;:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="color: #ff0000"&gt;Yudhiy Ariawan&lt;/span&gt; : &lt;span&gt;if I change the doctype from&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br /&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red"&gt;Yudhiy Ariawan&lt;/span&gt; : &lt;span&gt;into following:&lt;br /&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;and my Javascript error goes away.&lt;/p&gt;</description></item><item><title>Client Binding with WCF Service pass parameters</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Client-Binding-with-WCF-Service-pass-parameters/</link><pubDate>Fri, 08 Oct 2010 09:09:48 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;Hi Glenn,&lt;/p&gt;
&lt;p&gt;I am running into a JavaScript error with my implementation of the WebService.  I attached a small, stand alone solution that shows the error.  &lt;/p&gt;
&lt;p&gt;Do you know what is causing this error?&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;</description></item><item><title>Client Binding with WCF Service pass parameters</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Client-Binding-with-WCF-Service-pass-parameters/</link><pubDate>Fri, 08 Oct 2010 00:21:03 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;Hi Glenn,&lt;/p&gt;
&lt;p&gt;I spent most of the night trying to create a WebService.  I ran into a circular reference error that I believe was associated with my Entity Framework context.  I am accessing more than one table in order to populate the grid.&lt;/p&gt;
&lt;p&gt;Is Entity Framework supported?  Do you know how to avoid these circular references when you have multiple table?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Dave&lt;/p&gt;</description></item><item><title>Client Binding with WCF Service pass parameters</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Client-Binding-with-WCF-Service-pass-parameters/</link><pubDate>Thu, 07 Oct 2010 22:40:17 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;The proposed fix will be similar to the WebService implementation. You will need to use DataSourceSelectArguments as your select method parameter. The DataSourceSelectArguments will contain a tag property which you could use to hold you custom select arguments. This tag property will be filled during the client side selecting service event.&lt;/p&gt;&lt;p&gt;Selecting client side event&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function GetCustomers_Selecting(control, selectArguments) {&lt;br /&gt;    selectArguments.Tag = "City='Jakarta'";&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;Client binding settings&lt;/p&gt;&lt;pre&gt;&amp;lt;ClientBindingSettings DataSourceType="WcfService" ServiceUrl="WcfService.svc"&amp;gt;&lt;br /&gt;    &amp;lt;ServiceEvents Selecting="GetCustomers_Selecting" /&amp;gt;&lt;br /&gt;    &amp;lt;ServiceMethods SelectMethod="GetCustomers" /&amp;gt;&lt;br /&gt;&amp;lt;/ClientBindingSettings&amp;gt;&lt;/pre&gt;
&lt;p&gt;Select method definition&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;pre&gt;public List&amp;lt;Customer&amp;gt; GetCustomers(ISNet.ClientServices.DataSourceSelectArguments selectArguments)&lt;br /&gt;{&lt;br /&gt;    //Data selection logic &lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Client Binding with WCF Service pass parameters</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Client-Binding-with-WCF-Service-pass-parameters/</link><pubDate>Thu, 07 Oct 2010 20:53:57 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;Hi Glenn,&lt;/p&gt;
&lt;p&gt;I am working with the ClientBinding_VirtualGroupPaging_WebService example.  I am trying to get this working with my WCF Service.  &lt;/p&gt;
&lt;p&gt;My SelectMethod is set to receive "&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;selectArguments".  Unfortunately, this SelectMethod is never called - but if I remove the "selectArguments" parameter from the definition of my SelectMethod, then it is called.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;Is this the result of the bug you mention above?  Any idea on the turn around time for resolving this?  I do not want to use a WebService.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Dave&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Client Binding with WCF Service pass parameters</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Client-Binding-with-WCF-Service-pass-parameters/</link><pubDate>Wed, 06 Oct 2010 00:49:12 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;The developer has updated me regarding the issue, it seems the issue is caused by a bug and a bug report has been submitted.&lt;/p&gt;&lt;p&gt;In the mean time, if it is possible, you could try using our WebService method. When using WebService, you could pass the custom select parameter in the tag property during ServiceEvent selecting event in the client side.&lt;/p&gt;&lt;pre&gt;function GetCustomers_Selecting(control, selectArguments) {&lt;br /&gt;    selectArguments.Tag = "City='Jakarta'";&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;In the WebService select method, you could retrieve the parameter using the Tag property as well from the DataSourceSelectArgument object.&lt;/p&gt;
&lt;p&gt;The method is identical for the WCFService, however because of a bug this method is currently not working for the WCFService&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Client Binding with WCF Service pass parameters</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Client-Binding-with-WCF-Service-pass-parameters/</link><pubDate>Tue, 05 Oct 2010 05:59:52 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Sorry for the late reply, I am still discussing this issue with the developer. Currently, I am also having tne same difficulty in passing parameter on WCF service ClientBinding. I will inform you as soon I have any update from the developer.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Client Binding with WCF Service pass parameters</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Client-Binding-with-WCF-Service-pass-parameters/</link><pubDate>Fri, 01 Oct 2010 12:15:23 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;I am using a WCF Service for Client Binding.  How do I pass a parameter to my Select Method (getAllForecastTypes)?&lt;/p&gt;&lt;pre&gt;    &amp;lt;ISWebGrid:WebGrid ID="WebGrid2" runat="server" Height="250px" UseDefaultStyle="True"
        Width="500px" BindingOperationMode="ClientBinding"&amp;gt;
        &amp;lt;RootTable DataKeyField="value"&amp;gt;
            &amp;lt;Columns&amp;gt;
                &amp;lt;ISWebGrid:WebGridColumn Caption="Text" DataMember="text" Name="text" Width="100px"&amp;gt;
                &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                &amp;lt;ISWebGrid:WebGridColumn Caption="value" DataMember="value" Name="value" Width="100px"&amp;gt;
                &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
            &amp;lt;/Columns&amp;gt;
        &amp;lt;/RootTable&amp;gt;
        &amp;lt;ClientBindingSettings DataSourceType="WcfService" ServiceUrl="MarketDefinitionServices.svc"&amp;gt;
            &amp;lt;ServiceMethods SelectMethod="getAllForecastTypes" /&amp;gt;
        &amp;lt;/ClientBindingSettings&amp;gt;
    &amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/pre&gt;
</description></item></channel></rss>