﻿<?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 - Add parameters to client binding request?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-parameters-to-client-binding-request/</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>Add parameters to client binding request?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-parameters-to-client-binding-request/</link><pubDate>Mon, 29 Mar 2010 22:38:19 GMT</pubDate><dc:creator>yudi</dc:creator><category>webgrid clientbinding parameters</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Sorry to let you know that currently I have no sample of WebGrid that uses template column on client binding scenario.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Should you find any workaround for this scenario, I hope you don’t mind to share the knowledge with us. I’m sure it will help other member that has the same requirement as your scenario.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Thank you.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Add parameters to client binding request?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-parameters-to-client-binding-request/</link><pubDate>Mon, 29 Mar 2010 02:53:44 GMT</pubDate><dc:creator>hermancordes@gmail.com</dc:creator><category>webgrid clientbinding parameters</category><description>&lt;p&gt;Yudi,&lt;/p&gt;
&lt;p&gt;Thanks for the clarifying response! That explains it all.&lt;/p&gt;
&lt;p&gt;I've a workaround in mind by wrapping or modifying my object model, so that sub properties will read as a String. Maybe you've encountered more of template column requests for client binding with a more decent solution? (Not so important question, but maybe you or someone has a nice solution.)&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Herman&lt;/p&gt;</description></item><item><title>Add parameters to client binding request?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-parameters-to-client-binding-request/</link><pubDate>Mon, 29 Mar 2010 00:15:42 GMT</pubDate><dc:creator>yudi</dc:creator><category>webgrid clientbinding parameters</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Template column hasn’t been supported yet in ClientBinding scenario with current version of WebGrid 7 since ClientBinding renders the data in client not server. It is, currently, one of the limitations of ClientBinding feature.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;We’ll provide client-side template in the next version. I have submitted this as feature request (Task #661) to WebGrid development team. I’ll keep you updated with any news I heard from the team regarding this.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Add parameters to client binding request?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-parameters-to-client-binding-request/</link><pubDate>Fri, 26 Mar 2010 09:37:16 GMT</pubDate><dc:creator>hermancordes@gmail.com</dc:creator><category>webgrid clientbinding parameters</category><description>&lt;p&gt;Just one more thing. I'm now at the stage whereby I need to add some templated databound columns to the above example. With other, not clientbinding grids, templated columns works as designed, however with clientbinding it returns a javascript error:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;line 8&lt;br /&gt;char 38880&lt;br /&gt;"'null' is null or not an object"&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;My column definition is as follows:&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="Test" DataMember="UserName" ColumnType="Template" Width="100px"&amp;gt;
    &amp;lt;CellTemplate&amp;gt;
        &amp;lt;asp:Label ID="Label7" runat="server" Text='Test' /&amp;gt;
    &amp;lt;/CellTemplate&amp;gt;
&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;
&lt;p&gt;Currently just for test, but it simple doesn't work with 'DataMember' assigned. If I leave that empty, it works, but unfortunatly I do need the data.&lt;/p&gt;
&lt;p&gt;My last try was defined like this:&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridColumn Caption="Test" ColumnType="Template" Width="100px"&amp;gt;
    &amp;lt;CellTemplate&amp;gt;
        &amp;lt;asp:Label ID="Label7" runat="server" Text='&amp;lt;%# Test() %&amp;gt;' /&amp;gt;
    &amp;lt;/CellTemplate&amp;gt;
&amp;lt;/ISWebGrid:WebGridColumn&amp;gt;&lt;/pre&gt;

&lt;p&gt;It calls a server side method to calculate some text, but unfortunatly it doesn't call the method (by debugging it's not stepping into at least).&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;So I'm a little bit lost about what to do and how to get some custom data in it. I'd like to display a subproperty from the dataobject (Department.Code), which is not possible to do without a TemplatedColumn I believe.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Anyone got an idea? Thanks in advance.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Herman&lt;/p&gt;</description></item><item><title>Add parameters to client binding request?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-parameters-to-client-binding-request/</link><pubDate>Mon, 22 Mar 2010 06:19:40 GMT</pubDate><dc:creator>yudi</dc:creator><category>webgrid clientbinding parameters</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The sample on previous post will get the parameter from DropDownList1 control where on page load, the value/text of the DropDownList1 is “Australia”.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to have empty WebGrid on page load, simply add a parameter that will return no rows. Adding a DropDownList item that is not enlisted in “Country” column of the data source will cause the grid show empty rows on page load.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
        DropDownList1.Items.Add("Please select a country");
        DropDownList1.Items.Add("Australia");
        DropDownList1.Items.Add("Brazil");
        DropDownList1.Items.Add("Canada");
        DropDownList1.Items.Add("Denmark");
        DropDownList1.Items.Add("Finland");
        DropDownList1.Items.Add("France");
        DropDownList1.Items.Add("Germany");
        DropDownList1.Items.Add("Italy");
        DropDownList1.Items.Add("Japan");
        DropDownList1.Items.Add("Netherlands");
        DropDownList1.Items.Add("Norway");
        DropDownList1.Items.Add("Singapore");
        DropDownList1.Items.Add("Spain");
        DropDownList1.Items.Add("Sweden");
        DropDownList1.Items.Add("UK");
        DropDownList1.Items.Add("USA");

        DropDownList1.Attributes["onchange"] = "return DropDownList1_OnChange()";
    }
}&lt;/pre&gt;

&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Add parameters to client binding request?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-parameters-to-client-binding-request/</link><pubDate>Fri, 19 Mar 2010 04:37:53 GMT</pubDate><dc:creator>hermancordes@gmail.com</dc:creator><category>webgrid clientbinding parameters</category><description>&lt;p&gt;Just thinking about one little addition to this question.&lt;/p&gt;
&lt;p&gt;Because the client bound grid is used as part of a search page, the grid shouldn't be filled when the page opens. This is, however, the case at the moment because DataSourceID is set already.&lt;/p&gt;
&lt;p&gt;Is it someway, somehow possible to perform databinding just the same way as in the sample, but with an empty grid on page load?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Herman&lt;/p&gt;</description></item><item><title>Add parameters to client binding request?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-parameters-to-client-binding-request/</link><pubDate>Thu, 18 Mar 2010 20:57:09 GMT</pubDate><dc:creator>yudi</dc:creator><category>webgrid clientbinding parameters</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Glad to hear the good news.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Add parameters to client binding request?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-parameters-to-client-binding-request/</link><pubDate>Thu, 18 Mar 2010 06:04:38 GMT</pubDate><dc:creator>hermancordes@gmail.com</dc:creator><category>webgrid clientbinding parameters</category><description>&lt;p&gt;Perfect solution, thanks for the clear sample. Very quick sample too!&lt;/p&gt;</description></item><item><title>Add parameters to client binding request?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-parameters-to-client-binding-request/</link><pubDate>Thu, 18 Mar 2010 04:30:06 GMT</pubDate><dc:creator>yudi</dc:creator><category>webgrid clientbinding parameters</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Client-side binding includes a special ServerDataSource mode to enable you to quickly leverage existing server-side infrastructure while taking advantage of many benefits introduced by client binding. This means that you can still connect WebGrid to a server-side data source – such as SqlDataSource, ObjectDataSource, LinqDataSource – data source object assigned in InitializeDataSource event; while performing data binding operation in the client side.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I enclosed one simple sample of WebGrid bind to ISDataSource where the select method is based on a parameter (country parameter). Please have the attached sample tested on your end and let me know if you have different scenario.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Add parameters to client binding request?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Add-parameters-to-client-binding-request/</link><pubDate>Wed, 17 Mar 2010 04:34:58 GMT</pubDate><dc:creator>hermancordes@gmail.com</dc:creator><category>webgrid clientbinding parameters</category><description>&lt;p&gt;I'm discovering the possibilities for using client binding in our project. I'd like to perform a search, without refreshing the page and binding results to the grid.&lt;/p&gt;
&lt;p&gt;Client binding sounds good, however, I can't find any sample with client binding that sends parameters to the server to request the datasource.&lt;/p&gt;
&lt;p&gt;- Is it possible to send parameters to the server for client binding?&lt;/p&gt;
&lt;p&gt;- If yes, is there a example available?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item></channel></rss>