﻿<?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 - WebCombo linksettings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebCombo-linksettings/</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>WebCombo linksettings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebCombo-linksettings/</link><pubDate>Wed, 16 Jul 2014 02:52:09 GMT</pubDate><dc:creator>Hans</dc:creator><description>Hello,&lt;br&gt;&lt;br&gt;I’m glad to hear that you have resolved the issue with this work around.&lt;br&gt;&lt;br&gt;Should you have further question, please do not hesitate to contact us.&lt;br&gt;&lt;br&gt;Thank you.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hans K.&lt;br&gt;&lt;br&gt;</description></item><item><title>WebCombo linksettings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebCombo-linksettings/</link><pubDate>Wed, 16 Jul 2014 01:48:38 GMT</pubDate><dc:creator>x-rookie</dc:creator><description>&lt;p&gt;Thank you for your help.I&amp;nbsp;take your advice and solve the problem.Thank you.&lt;/p&gt;</description></item><item><title>WebCombo linksettings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebCombo-linksettings/</link><pubDate>Fri, 11 Jul 2014 04:22:17 GMT</pubDate><dc:creator>Hans</dc:creator><description>Hello,&lt;br&gt;&lt;p&gt;&lt;br&gt;Thank you for the question.&lt;br&gt;&lt;br&gt;I apologize for any inconvenience this problem may have caused you.&lt;br&gt;I can reproduce the error message on my end as well.&lt;br&gt;&lt;br&gt;I create a work around sample to resolve this issue that perhaps similar with your current scenario.&lt;br&gt;First, let me explain a little about the sample.&lt;br&gt;&lt;br&gt;In this sample I add one WebGrid &amp;amp; two WebCombo. I bind those controls to access data source control (Northwind data base).&lt;br&gt;The WebGrid was bound to Order Details table; the first WebCombo (CategoriesWebCombo) bind to Categories table; the second WebCombo (ProductsWebCombo) bind to Products table.&lt;br&gt;&lt;br&gt;In ProductID WebGrid’s column, I set the “EditType” to “WebComboNET” and “WebComboID” to “ProductsWebCombo”.&lt;br&gt;&lt;br&gt;In CategoriesWebCombo, I add OnAfterItemSelected client side event:&lt;br&gt;&lt;/p&gt;&lt;pre&gt;function CategoriesWebCombo_OnAfterItemSelected(controlId){
    var ProductsWebCombo = ISGetObject("ProductsWebCombo");

    //clears the data list in ProductsWebCombo
    ProductsWebCombo.NeedClearList = true;
    ProductsWebCombo.IsDirty = true;

    return true;
}&lt;/pre&gt;&lt;p&gt;In ProductsWebCombo, I set the Set “AllowAutoQueryHandler” property to “False”. Then I add “OnBeforeRequestclient” side event:&lt;br&gt;&lt;/p&gt;&lt;pre&gt;function ProductsWebCombo_OnBeforeRequest(controlId, action)
{
    var CategoriesWebCombo = ISGetObject("CategoriesWebCombo");
    if(action == "LoadData")
    {
        if (CategoriesWebCombo.Value == "" || CategoriesWebCombo.Value == null)
        {
            alert("Please select a value for the following webcombo input : " + CategoriesWebCombo.Name);
            return false;
        }
    }
    return true;
}&lt;/pre&gt;&lt;p&gt;And I add “OnInitializeDataSource” server side event:&lt;br&gt;&lt;/p&gt;&lt;pre&gt;protected void ProductsWebCombo_InitializeDataSource(object sender, ISNet.WebUI.WebCombo.DataSourceEventArgs e)
{
    OleDbConnection oConn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Northwind.mdb;Persist Security Info=True");
    oConn.Open();

    string queryText = "";
    DataTable dt = new DataTable("Products");                       

    if(CategoriesWebCombo.Value != "" &amp;amp;&amp;amp; CategoriesWebCombo.Value != null)
    {
        queryText = "CategoryID = " + CategoriesWebCombo.Value;
        OleDbDataAdapter da = new OleDbDataAdapter("Select * From Products Where " + queryText, oConn);
        da.FillSchema(dt,SchemaType.Mapped);
        da.Fill(dt);
        e.DataSource = dt;                      
    }

    ProductsWebCombo.DataMember = "Products";
    ProductsWebCombo.DataTextField = "ProductName";
    ProductsWebCombo.DataValueField = "ProductID";
}&lt;/pre&gt;&lt;p&gt;With this work around, the ProductsWebCombo will show data based on the selected item in CategoriesWebCombo.&lt;br&gt;&lt;br&gt;Please kindly try to select an item in CategoriesWebCombo, and then try focus on ProductID WebGrid’s column on Add New Row section.&lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hans K.&lt;br&gt;&lt;/p&gt;</description></item><item><title>WebCombo linksettings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebCombo-linksettings/</link><pubDate>Tue, 08 Jul 2014 22:45:18 GMT</pubDate><dc:creator>x-rookie</dc:creator><description>&lt;p&gt;I use a webcombo in webgrid called "wc_ship_warehouse".&lt;/p&gt;&lt;p&gt;&amp;lt;ISWebCombo:WebCombo ID="wc_ship_warehouse" runat="server" DropDownRows="30" ScriptDirectory="../CommonLibrary/WebCombo/V6_0_7200/"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SharedScriptDirectory="../CommonLibrary/Shared/" Height="30px" Width="120px"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataValueField="f_id" DataTextField="f_name" UseDefaultStyle="True" AllowAutoDataCaching="False" OnInitializeDataSource="wc_ship_warehouse_InitializeDataSource"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Columns&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="f_name" HeaderText="船舶仓库名称" Name="f_name"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Width="120px" /&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="f_code" HeaderText="仓库位置编号" Name="f_code" Width="100px" /&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="f_ship_id" Name="f_ship_id" Hidden="true" RenderOnHidden="true" /&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Columns&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;LinkSettings Enabled="true" ParentWebComboID="wc_user_ship" FilterDataMember="f_ship_id" /&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;LayoutSettings ResultBoxHeight="200" HelpURL="../Help/h_webcombo.html" ScriptDirectory="../CommonLibrary/WebCombo/V6_0_7200/"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImagesDirectory="../CommonLibrary/Images/" EnableAnimation="True" ComboMode="MultipleColumns"&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EntryMode="AutoComplete" EnableSlidingAnimation="True" ResultBoxWindowType="Normal"&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/LayoutSettings&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ISWebCombo:WebCombo&amp;gt;&lt;/p&gt;&lt;p&gt;I set its linksettings like this &amp;lt;LinkSettings Enabled="true" ParentWebComboID="wc_user_ship" FilterDataMember="f_ship_id" /&amp;gt; the parentWebComID "wc_user_ship" is an independent control not in this webgrid. Both these webcombos datasource is right.But When I edit the webcombo value in this webgrid,It calls an error like this:The ParentWebcombo "wc_user_ship" which this webcombo is linked to does not bound any column in this webgrid" So Please how can I solve this problem?&lt;/p&gt;</description></item></channel></rss>