﻿<?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 - WebCombo - Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</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>Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</link><pubDate>Tue, 30 Mar 2010 06:05:13 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Could you provide us with a running sample for what you are trying to do, or provide us with a snippet code for the event handler where you are trying to change the WebCombo data source.&lt;/p&gt;&lt;p&gt;This will allow us to replicate the scenario you are facing more accurately.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</link><pubDate>Tue, 30 Mar 2010 02:15:26 GMT</pubDate><dc:creator>huzzy143</dc:creator><description>Hi,&lt;br /&gt;The AutoComplete feature worked like a charm.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote style="padding-left: 10px; margin: 0px 0px 0px 5px; border-left: 1px solid rgb(204, 204, 204);"&gt;Regarding the missing WebCombo text, in such scenario you will need to fill the virtual column (in this case FullName) as you set the value to 
the WebCombo. The InitializeRow server side event will be invoked when 
you show the WebCombo dropdown, in your scenario the InitializeRow will 
not be triggered.&lt;br /&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Can you please provide a sample or a proper code to illustrate how would i do this thing?&lt;/p&gt;
&lt;p&gt;I am just getting a DataTable consisting of 1 row which is filetered on the Value in DTO object, and attaching this DataTable to WebCombo. I even add an extra column in DataTable for FullName and give its Value but nothing is shown on client side and TextBox of WebCombo remains empty.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Huzefa&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Huzefa&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</link><pubDate>Sun, 28 Mar 2010 21:54:45 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;In order to automatically set the WebCombo value to the shown dropdown item you will need to use EntryMode AutoComplete instead of InstantLookup.&lt;/p&gt;&lt;p&gt;Regarding the missing WebCombo text, in such scenario you will need to fill the virtual column (in this case FullName) as you set the value to the WebCombo. The InitializeRow server side event will be invoked when you show the WebCombo dropdown, in your scenario the InitializeRow will not be triggered.&lt;/p&gt;
&lt;p&gt;Other suggestion regarding your scenario would be modifying the select query from the database. Instead of &lt;em&gt;SELECT UserID, FirstName, LastName FROM [Users]&lt;/em&gt;, please use &lt;em&gt;SELECT UserID, FirstName, LastName, FirstName &amp;#43; ' ' &amp;#43; LastName AS FullName FROM [Users]&lt;/em&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</link><pubDate>Sun, 28 Mar 2010 04:10:28 GMT</pubDate><dc:creator>huzzy143</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;blockquote style="border-left: rgb(204,204,204) 1px solid; margin: 0px 0px 0px 5px; padding-left: 10px"&gt;&lt;p&gt;In order to allow the instant lookup feature to work you will need to use AdditionalSearchField property in order to allow WebCOmbo to search in the FirstName and LastName field, for example.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;How to set Multiple AdditionalSearchFields?&lt;/p&gt;
&lt;p&gt;I have set the FirstName as AdditionalSearchField but when i type in a Name and press Tab, then the Filtered record is just 1 record but it doesn't get set, instead the DropDown result box opens up and i have to explicitly select a record.&lt;/p&gt;
&lt;p&gt;What i want is after user Press Tab key and after filter if the number of records returned is just 1 then automatically set the Value and Text of that record. How can i achieve this?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;blockquote style="border-left: rgb(204,204,204) 1px solid; margin: 0px 0px 0px 5px; padding-left: 10px"&gt;&lt;p&gt;On the server side, you will need to set the Value property in order to set the default choice in WebCombo, as detailed on the article &lt;em&gt;How-to: Set initial value from server side in WebCombo &lt;/em&gt;in the WebCombo documentation.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="background-color: #f5f5f5"&gt;I am not using any DataSource&amp;nbsp; control instead i am Binding Data on InitializeDataSource Method.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color: #f5f5f5"&gt;I am checking if Action!="LoadData" and Value is set to something and Text is empty, then go to database filter the record on Value and get 1 record. After getting this one record i attach it to DataSource property of WebCombo. The Issue is i am adding a temporary column as you suggested and setting its text and value on InitializeRow event, but this event doesn't get called at all. And the text is not set. The WebCombo TextBox comes with empty text. Am i missing somehting?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color: #f5f5f5"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="background-color: #f5f5f5"&gt;Basically i want a LoadOnDemand functionality but i don't wanna use ISDataSource control or ObjectDataSource Control. Instead i manually call database and get a DataTable and bind this DataTable to DataSource of webCombo.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color: #f5f5f5"&gt;What would be the best approach for this?&lt;/span&gt;&lt;/p&gt;


</description></item><item><title>Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</link><pubDate>Fri, 26 Mar 2010 02:58:18 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;The instant lookpup feature will not work if it is set to a hidden column. In order to allow the instant lookup feature to work you will need to use AdditionalSearchField property in order to allow WebCOmbo to search in the FirstName and LastName field, for example.&lt;/p&gt;&lt;p&gt;Our WebCombo documentation already have an article regarding AdditionalSearchField on the article titled &lt;em&gt;Additional Search Field&lt;/em&gt; and &lt;em&gt;How-to: Use AdditionalSearchField to search a query text on other column besides DataTextField column&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately both classic paging and filter on a specific column feature has not been supported in the current version of WebCombo.&lt;/p&gt;
&lt;p&gt;On the server side, you will need to set the Value property in order to set the default choice in WebCombo, as detailed on the article &lt;em&gt;How-to: Set initial value from server side in WebCombo &lt;/em&gt;in the WebCombo documentation. In the client side you could set the choice using the text by executing the SetTextBoxValue function, as detailed on the article &lt;em&gt;How-to: Get/Set the TextBox value&lt;/em&gt; in the WebCombo documentation&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</link><pubDate>Thu, 25 Mar 2010 09:17:13 GMT</pubDate><dc:creator>huzzy143</dc:creator><description>&lt;p&gt;Hi Glenn,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for this solutions, it worked like a charm.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Few questions i want to ask you,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;1) I want this combo to have Instant Lookup functionality as provided in your samples. But after i apply your above solution the instant lookup thing doesn't work. Can you provide a solution to get it proper on some real column.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;2) How can i have more than 1 AdditionalFilterColumn in combo?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;3) How can i have paging in combo instead of More button?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;4) I want something like filter bar on top of each column so that after the dropdown is open user can filter on any additional column he wishes to. Can i do this in WebCombo? I need it please provide a way.&lt;/p&gt;
&lt;p&gt;5) Once the user have selected a value and have posted the selection to server. Now i want to display the user his choice back. I have the user selected Id field value and want to set its Text to webCombo how can i do this? As Text property of WebCombo doesn't have a Setter. How can i achieve this?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Huzefa&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</link><pubDate>Mon, 22 Mar 2010 23:39:08 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;For your scenario, you could add the new column to the datasource during IntializeDataSource server side event&lt;/p&gt;&lt;pre&gt;protected void Combo1_InitializeDataSource(object sender, ISNet.WebUI.WebCombo.DataSourceEventArgs e)&lt;br /&gt;{&lt;br /&gt;    DataTable dtData = new DataTable();&lt;br /&gt;    dtData.Columns.AddRange(new DataColumn[]{&lt;br /&gt;        new DataColumn("UserID"),&lt;br /&gt;        new DataColumn("FirstName"),&lt;br /&gt;        new DataColumn("LastName"),&lt;br /&gt;        new DataColumn("Age"),&lt;br /&gt;        new DataColumn("Gender")&lt;br /&gt;    });&lt;br /&gt;&lt;br /&gt;    dtData.Rows.Add(new object[] { "1", "Tom", "Blanks", "50", "Male"});&lt;br /&gt;    dtData.Rows.Add(new object[] { "2", "Peter", "Schuler", "30", "Male" });&lt;br /&gt;    dtData.Rows.Add(new object[] { "3", "Kareena", "Kapoor", "24", "Female" });&lt;br /&gt;    dtData.Rows.Add(new object[] { "4", "John", "Doe", "40", "Male" });&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: rgb(255, 0, 0);"&gt;dtData.Columns.Add(new DataColumn("FullName"));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    dtData.AcceptChanges();&lt;br /&gt;&lt;br /&gt;    e.DataSource = dtData;&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;In order to fill the FullName data, you could use the InitializeRow server side event handler&lt;/p&gt;&lt;pre&gt;protected void Combo1_InitializeRow(object sender, RowEventArgs e)&lt;br /&gt;{&lt;br /&gt;    WebComboCell fName = e.Row.Cells.GetNamedItem("FirstName");&lt;br /&gt;    WebComboCell lName = e.Row.Cells.GetNamedItem("LastName");&lt;br /&gt;    WebComboCell fullName = e.Row.Cells.GetNamedItem("FullName");&lt;br /&gt;&lt;br /&gt;    fullName.Value = String.Join(" ", new string[] { fName.Text, lName.Text });&lt;br /&gt;    fullName.Text = String.Join(" ", new string[] { fName.Text, lName.Text });&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;Regarding my earlier post to create the column programmatically, in order to render the hidden correctly, you will need to use the InitializeLayout server side event instead of PrepareDataBinding.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</link><pubDate>Mon, 22 Mar 2010 03:50:51 GMT</pubDate><dc:creator>huzzy143</dc:creator><description>&lt;p&gt;If i have 50,000 rows and i dyanmically loop through datasource and add an extra column then it would be a big performance bottleneck.&lt;/p&gt;
&lt;p&gt;Can't i just add temporray column to those records which are currently shown to user.&lt;/p&gt;
&lt;p&gt;Like for first 15 rows i create a temporary column and display to user, then when user clicks for more then i create a temporray record for remaining 15 rows and so on...&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Please suggest me a proper way if the number of records are more than 50,000.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Huzefa&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</link><pubDate>Mon, 22 Mar 2010 02:48:45 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Unfortunately, for the scenario to work without any issue you will need to use the temporary column in the datasource technique.&lt;/p&gt;&lt;p&gt;IF you would like to create the column dynamically, you will need to use the PrepareDataBinding server side event handler. Here is the snippet:&lt;/p&gt;&lt;pre&gt;protected void Combo1_PrepareDataBinding(object sender, ISNet.WebUI.WebCombo.DataSourceEventArgs e)&lt;br /&gt;{&lt;br /&gt;    WebComboColumn fullName = new WebComboColumn();&lt;br /&gt;    fullName.BaseFieldName = "FullName";&lt;br /&gt;    fullName.HeaderText = "Full name";&lt;br /&gt;    fullName.Name = "FullName";&lt;br /&gt;    fullName.Hidden = true;&lt;br /&gt;    fullName.RenderOnHidden = true;&lt;br /&gt;    Combo1.Columns.Add(fullName);&lt;br /&gt;&lt;br /&gt;    WebComboColumn firstName = new WebComboColumn();&lt;br /&gt;    firstName.BaseFieldName = "FirstName";&lt;br /&gt;    firstName.HeaderText = "First Name";&lt;br /&gt;    firstName.Name = "FirstName";&lt;br /&gt;    firstName.Width = Unit.Pixel(150);&lt;br /&gt;    Combo1.Columns.Add(firstName);&lt;br /&gt;&lt;br /&gt;    WebComboColumn lastName = new WebComboColumn();&lt;br /&gt;    lastName.BaseFieldName = "LastName";&lt;br /&gt;    lastName.HeaderText = "Last Name";&lt;br /&gt;    lastName.Name = "LastName";&lt;br /&gt;    lastName.Width = Unit.Pixel(150);&lt;br /&gt;    Combo1.Columns.Add(lastName);&lt;br /&gt;&lt;br /&gt;    WebComboColumn age = new WebComboColumn();&lt;br /&gt;    age.BaseFieldName = "Age";&lt;br /&gt;    age.HeaderText = "Age";&lt;br /&gt;    age.Name = "Age";&lt;br /&gt;    age.Width = Unit.Pixel(50);&lt;br /&gt;    Combo1.Columns.Add(age);&lt;br /&gt;&lt;br /&gt;    WebComboColumn gender = new WebComboColumn();&lt;br /&gt;    gender.BaseFieldName = "Gender";&lt;br /&gt;    gender.HeaderText = "Gender";&lt;br /&gt;    gender.Name = "Gender";&lt;br /&gt;    gender.Width = Unit.Pixel(100);&lt;br /&gt;    Combo1.Columns.Add(gender);&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;Templating has not been supported in the latest version of WebCombo. Currently integration between WebCombo and WebGrid is limited to WebCombo as an EditColumnType in the WebGrid.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</link><pubDate>Sat, 20 Mar 2010 01:27:25 GMT</pubDate><dc:creator>huzzy143</dc:creator><description>&lt;p&gt;Thanks Glenn&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;But merging it into one column won't be a great idea in my case. Can't i set a Text on my own using javascript methods?&lt;br /&gt;&lt;br /&gt;Can you also send me a example were columns for MultiColumn Mode are added dyanmically?&lt;br /&gt;Also is Templatting being supported? Can i add a WebGrid to be shown when result/data is shown?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Huzefa&lt;br /&gt;
&lt;p&gt;&lt;a href="file:///C:/Users/huzefa.EBSDC/Downloads/MultiColumnCombo/MultiColumnCombo.aspx" /&gt;&lt;/p&gt;</description></item><item><title>Show data from Multiple column when user selects a record</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Show-data-from-Multiple-column-when-user-selects-a-record/</link><pubDate>Thu, 18 Mar 2010 02:02:24 GMT</pubDate><dc:creator>huzzy143</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have a multi column Web Combo, now i few columns like FirstName,Lastname,Age and Gender.&lt;/p&gt;
&lt;p&gt;Now when user selects a particular record i want to show that records FirstName &amp;#43; LastName to the user as its TextField.&lt;/p&gt;
&lt;p&gt;e.g. FirstName   LastName   Age  Gender&lt;/p&gt;
&lt;p&gt;       Tom            Blanks         50     Male&lt;/p&gt;
&lt;p&gt;       Peter           Schuler         30    Male&lt;/p&gt;
&lt;p&gt;        Kareena      Kapoor         24    Female&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now i select the Second record then the text Shown on Form to user should  = &amp;gt; Peter Schuler not just Peter.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;How can i achieve this?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>