﻿<?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 - How to Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</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 Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</link><pubDate>Tue, 09 Mar 2010 16:11:32 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;That fixed it.&lt;/p&gt;</description></item><item><title>How to Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</link><pubDate>Mon, 08 Mar 2010 20:38:12 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;I have use a conditional checking so the LoadValue will only be invoke if the TextBoxValue and element value is different. However using the steps in your previous post, this block will not be executed and the GetRowSelected method will return null.&lt;/p&gt;&lt;p&gt;In order to resolve this issue just comment out the conditional logic for the LoadValue&lt;/p&gt;&lt;pre&gt;//if (editObject.element.GetTextBoxValue() != editObject.element.Value)&lt;br /&gt;//{&lt;br /&gt;editObject.element.Value = editObject.element.GetTextBoxValue();&lt;br /&gt;editObject.element.LoadValue(true);&lt;br /&gt;//}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</link><pubDate>Mon, 08 Mar 2010 07:30:48 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;I guess you didn't reproduce the problem with the steps from my previous post.&lt;/p&gt;
&lt;p&gt;I was describing when the Product Number Value is in the Database and just going into EditMode on the WebCombo leads to the Product Name Value being Set to an Empty String without Changing the Value in the WebCombo.&lt;/p&gt;
&lt;p&gt;It is OK to Set the Product Name Value to an Empty String if it is not in the Database but it is NOT OK to Set the Product Name Value to an Empty String it if it is in the Database&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;STEPS TO REPRODUCE:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You can test it with the instructions from my previous post or try this: &lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Click on the Product Number Column in a row&lt;br /&gt;&lt;br /&gt;Make Sure it is in Edit Mode and the WebCombo is available.&amp;nbsp; If this is a new row it should already be in Edit Mode.&amp;nbsp; If it is an existing row you may need to double click it to get it into Edit Mode&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select&amp;nbsp;"1" from the DropDown&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Press the "Tab" Key&lt;br /&gt;&lt;br /&gt;Focus goes to the Product Name Column and "Chai" is populated in it&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Press the combination "Shift" &amp;#43; "Tab" Keys&lt;br /&gt;&lt;br /&gt;Focus goes back to the Product Number Column&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Press the "Tab" Key&lt;br /&gt;&lt;br /&gt;Focus goes to the Product Name Column and &lt;span style="color: #ff0000"&gt;"Chai" is cleared, set to an Empty String&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;PROBLEM:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;"1" is a valid Product Number yet it in the above scenario, in Step 5, the Product Name Column Value is Set to an Empty String.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;How can this problem be corrected?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</link><pubDate>Sun, 07 Mar 2010 22:56:55 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;You are correct, the snippet for OnExitEditMode event handler logic will set the ProductName cell value to empty if the inserted ProductId is not on the list. I highlighted the responsible line that will set the ProductName value if the ProductId is not in the list.&lt;/p&gt;&lt;pre&gt;function OrderDetails_WebGrid_OnExitEditMode(controlId, tblName, editObject)&lt;br /&gt;{&lt;br /&gt;    var wg = ISGetObject(controlId);&lt;br /&gt;    var cellObj = editObject.ToCellObject();&lt;br /&gt;    if (cellObj.Name == "ProductID_WebGridColumn")&lt;br /&gt;    {&lt;br /&gt;        if (editObject.element.IsInProgress)&lt;br /&gt;        {&lt;br /&gt;            editObject.ToCellObject().Select(true, true);&lt;br /&gt;            return false;&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            if (editObject.element.GetTextBoxValue() != editObject.element.Value)&lt;br /&gt;            {&lt;br /&gt;                editObject.element.Value = editObject.element.GetTextBoxValue();&lt;br /&gt;                editObject.element.LoadValue(true);&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            if (editObject.element.GetSelectedRow() != null)&lt;br /&gt;            {&lt;br /&gt;                cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetText(editObject.element.GetSelectedRow().cells[1].innerText);&lt;br /&gt;                cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetValue(editObject.element.GetSelectedRow().cells[1].innerText);&lt;br /&gt;&lt;br /&gt;                setTimeout(function()&lt;br /&gt;                {&lt;br /&gt;                    cellObj.GetRow().GetCell('ProductID_WebGridColumn').SetText(editObject.element.GetSelectedRow().cells[0].innerText);&lt;br /&gt;                    cellObj.GetRow().GetCell('ProductID_WebGridColumn').SetValue(editObject.element.GetSelectedRow().cells[0].innerText);&lt;br /&gt;                }, 5);&lt;br /&gt;            }&lt;br /&gt;            &lt;span style="color: rgb(255, 0, 0);"&gt;else&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;            {&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetText("");&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetValue("");&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;            }&lt;/span&gt;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    return true;&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;Feel free to modify them to fit your scenario.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</link><pubDate>Sat, 06 Mar 2010 13:38:07 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I found a problem.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;For an existing row, click on the WebCombo Column to cause it to go into Edit Mode&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Press the Tab Key&lt;br /&gt;&lt;br /&gt;The Product Name is Deleted&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I a guessing this is because the JavaScript is checking to see if a Row is Selected.  Since the Drop Down never occurred, the Load never occurred so a row was never selected.&lt;/p&gt;
&lt;p&gt;I do want to blank out the Product Name when the User types in something not in the List, such as "78" or "".&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;</description></item><item><title>How to Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</link><pubDate>Thu, 04 Mar 2010 07:42:52 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;That seems to be working.  I will do more testing.&lt;/p&gt;
&lt;p&gt;This is a lot easier than what I had came up with for when the WebCombo was standalone.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.intersoftpt.com/Community/WebCombo/How-do-I-wait-for-the-DropDown-to-be-loaded-in-the-WebCombo-Client-Side-OnBlur-Event/"&gt;http://www.intersoftpt.com/Community/WebCombo/How-do-I-wait-for-the-DropDown-to-be-loaded-in-the-WebCombo-Client-Side-OnBlur-Event/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I ended up doing a SendCustomRequest so I could monitor it's completion.  I had tried the LoadValue but I think I ran into the problem where the ProductID was not updated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;</description></item><item><title>How to Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</link><pubDate>Wed, 03 Mar 2010 22:43:31 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;You could try checking the TextBoxValue of the WebCombo and try to load the selected item from the TextBoxValue. Here is the snippet:&lt;/p&gt;&lt;pre&gt;function OrderDetails_WebGrid_OnExitEditMode(controlId, tblName, editObject)&lt;br /&gt;{&lt;br /&gt;    var wg = ISGetObject(controlId);&lt;br /&gt;&lt;br /&gt;    var cellObj = editObject.ToCellObject();&lt;br /&gt;    &lt;br /&gt;    if (cellObj.Name == "ProductID_WebGridColumn")&lt;br /&gt;    {&lt;br /&gt;        if (editObject.element.IsInProgress)&lt;br /&gt;        {&lt;br /&gt;            editObject.ToCellObject().Select(true, true);&lt;br /&gt;            return false;&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            &lt;span style="color: rgb(255, 0, 0);"&gt;if (editObject.element.GetTextBoxValue() != editObject.element.Value)&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;            {&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                editObject.element.Value = editObject.element.GetTextBoxValue();&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                editObject.element.LoadValue(true);&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;            }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;            if (editObject.element.GetSelectedRow() != null)&lt;br /&gt;            {&lt;br /&gt;                cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetText(editObject.element.GetSelectedRow().cells[1].innerText);&lt;br /&gt;                cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetValue(editObject.element.GetSelectedRow().cells[1].innerText);&lt;br /&gt;&lt;br /&gt;                &lt;span style="color: rgb(255, 0, 0);"&gt;setTimeout(function()&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                {&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                cellObj.GetRow().GetCell('ProductID_WebGridColumn').SetText(editObject.element.GetSelectedRow().cells[0].innerText);&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                cellObj.Get&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Row().GetCell('ProductID_WebGridColumn').SetValue(editObject.element.GetSelectedRow().cells[0].innerText);&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                }, 5);&lt;/span&gt;&lt;br /&gt;            }&lt;br /&gt;            else&lt;br /&gt;            {&lt;br /&gt;                cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetText("");&lt;br /&gt;                cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetValue("");&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    return true;&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;You will also need to set the ProductID column to the textbox value because under certain condition the Value is not updated with the TextBoxValue.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</link><pubDate>Wed, 03 Mar 2010 09:07:40 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We are getting closer.&lt;/p&gt;
&lt;p&gt;Most the time the user knows what the Part Number is and does not need to look in the Drop Down.  Also, the Part Number may not be in the Drop Down but we do not want to limit the User to the Drop Down as the Part Number they need is not in the database yet.&lt;/p&gt;
&lt;p&gt;This works fine if the User Waits before pressing the Tab Key.&lt;/p&gt;
&lt;p&gt;However as explained before, "If the User types in the WebCombo rather than selecting from the Drop Down, the User can Tab off the WebCombo before it is finished loading."&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;In this case, IsInProgess is false.&amp;nbsp; It&amp;nbsp;probably has not started,&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;To Reproduce Timing issue:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Double Click in the Product Number Column to get into Edit Mode&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Type&amp;nbsp;"8"&amp;nbsp;then quickly press the Tab&amp;nbsp;Key&lt;br /&gt;&lt;br /&gt;The idea here is to type something other than what might already be loaded.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Results:&lt;/p&gt;
&lt;p&gt;- Product Name is not loaded&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The symptoms are the same in IE, Mozilla, Chrome and Safari&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any other ideas?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;</description></item><item><title>How to Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</link><pubDate>Tue, 02 Mar 2010 23:13:06 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;You could use the ExitEditMode client side event handler to fill in the ProductName cell. Here is the snippet:&lt;/p&gt;&lt;pre&gt;function OrderDetails_WebGrid_OnExitEditMode(controlId, tblName, editObject)&lt;br /&gt;{&lt;br /&gt;    var wg = ISGetObject(controlId);&lt;br /&gt;&lt;br /&gt;    var cellObj = editObject.ToCellObject();&lt;br /&gt;&lt;br /&gt;    if (cellObj.Name == "ProductID_WebGridColumn")&lt;br /&gt;    {&lt;br /&gt;        if (editObject.element.IsInProgress)&lt;br /&gt;        {&lt;br /&gt;            editObject.ToCellObject().Select(true, true);&lt;br /&gt;            return false;&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            if (editObject.element.GetSelectedRow() != null)&lt;br /&gt;            {&lt;br /&gt;                cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetText(editObject.element.GetSelectedRow().cells[1].innerText);&lt;br /&gt;                cellObj.GetRow().GetCell('ProductName_WebGridColumn').SetValue(editObject.element.GetSelectedRow().cells[1].innerText);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    return true;&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;The IsInProgress conditional check is used if the WebCombo is still in the process of auto completing the inputed text.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</link><pubDate>Tue, 02 Mar 2010 18:42:05 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;Please use the attached sample as a basis.&lt;/p&gt;
&lt;p&gt;I want to populate ProductName_WebGridColumn with the [ProductName] when ProductID_WebGridColumn's WebCombo's value changes, selected.&lt;/p&gt;</description></item><item><title>How to Link WebCombo MutipleColumns Value to another Regular WebColumn</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-Link-WebCombo-MutipleColumns-Value-to-another-Regular-WebColumn/</link><pubDate>Sun, 28 Feb 2010 17:35:10 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;I have a WebGridColumn with EditType="WebComboNet" with a DataMember="PART_NUM".  The WebCombo has EntryMode="AutoComplete" and ComboMode="MutipleColumns" of PART_NUM and PART_DESCRIPTION. &lt;/p&gt;
&lt;p&gt;Is it possible to easily get the PART_DESCRIPTION when an Item is Selected in the WebCombo and populate another WebGridColumn?&lt;/p&gt;
&lt;p&gt;When I implemented this without a WebGrid, it became very complicated to do this primarily because of timing issues caused by loading over 10,000 items into the WebCombo, albeit only 100 or less at a time.  If the User types in the WebCombo rather than selecting from the Drop Down, the User can Tab off the WebCombo before it is finished loading.  I am hoping things are easier with a WebGrid.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>