﻿<?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 - Getting a value of a specific column with Multiple Column WebCombo</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Getting-a-value-of-a-specific-column-with-Multiple-Column-WebCombo/</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>Getting a value of a specific column with Multiple Column WebCombo</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Getting-a-value-of-a-specific-column-with-Multiple-Column-WebCombo/</link><pubDate>Thu, 09 Dec 2010 19:00:30 GMT</pubDate><dc:creator>ellpan</dc:creator><description>&lt;p&gt;Thank you, Handy.&lt;/p&gt;</description></item><item><title>Getting a value of a specific column with Multiple Column WebCombo</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Getting-a-value-of-a-specific-column-with-Multiple-Column-WebCombo/</link><pubDate>Tue, 07 Dec 2010 21:56:58 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Ellen,&lt;/p&gt;
&lt;p&gt;You can only get the hidden column value by selecting the row. OnAfterSelectedItem clientside event, you can capture the element.&lt;/p&gt;
&lt;p&gt;e.g&lt;/p&gt;&lt;pre&gt;function WebCombo1_OnAfterItemSelected(controlId)
{
            var combo = ISGetObject("WebCombo1");
            combo.GetSelectedRow().cells[2].innerText;			&lt;br /&gt;            return true;
}&lt;/pre&gt;

&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Getting a value of a specific column with Multiple Column WebCombo</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Getting-a-value-of-a-specific-column-with-Multiple-Column-WebCombo/</link><pubDate>Mon, 06 Dec 2010 13:27:38 GMT</pubDate><dc:creator>ellpan</dc:creator><description>&lt;span style="font-size: 10pt"&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt;
&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;/p&gt;&lt;span style="font-size: 12pt; mso-ascii-font-family: calibri; mso-fareast-font-family: 'times new roman'; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 12pt; mso-ascii-font-family: calibri; mso-fareast-font-family: 'times new roman'; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Hi. I have a WebCombo called wcboCompany with 3 columns. First two columns are visible, the last column is hidden. &lt;/span&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 12pt; mso-ascii-font-family: calibri; mso-fareast-font-family: 'times new roman'; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;If the columns are visible, I have no problems retrieving their values, but I cannot retrieve the value of the hidden column. The problem is that var cells (Client side code) retrieves only two visible cells, the hidden cell is not retrieved. &lt;/span&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 12pt; mso-ascii-font-family: calibri; mso-fareast-font-family: 'times new roman'; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Server side code:&lt;/span&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="font-family: consolas; font-size: 9.5pt; mso-fareast-font-family: 'times new roman'"&gt;wcbo.Columns.Add(&lt;span style="color: #a31515"&gt;"CompanyID"&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="font-family: consolas; font-size: 9.5pt; mso-fareast-font-family: 'times new roman'"&gt;wcbo.Columns(0).Width = 230&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="font-family: consolas; font-size: 9.5pt; mso-fareast-font-family: 'times new roman'"&gt;wcbo.Columns.Add(&lt;span style="color: #a31515"&gt;"CompanyName"&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="font-family: consolas; font-size: 9.5pt; mso-fareast-font-family: 'times new roman'"&gt;wcbo.Columns(1).Width = 70&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="font-family: consolas; font-size: 9.5pt; mso-fareast-font-family: 'times new roman'"&gt;wcbo.Columns.Add("&lt;span style="color: #a31515"&gt;CompanyGroup&lt;/span&gt;")&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="font-family: consolas; font-size: 9.5pt; mso-fareast-font-family: 'times new roman'"&gt;wcbo.Columns(2).Hidden = "True"&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;span style="font-family: consolas; font-size: 9.5pt; mso-fareast-font-family: 'times new roman'"&gt;wcbo.Columns(2).RenderOnHidden = "True"&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 12pt; mso-ascii-font-family: calibri; mso-fareast-font-family: 'times new roman'; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Client side code (on row selection):&lt;/span&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 12pt; mso-ascii-font-family: calibri; mso-fareast-font-family: 'times new roman'; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;var combo = ISGetObject("wcboCompany"); &lt;/span&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 12pt; mso-ascii-font-family: calibri; mso-fareast-font-family: 'times new roman'; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;var rows = combo4.GetRows();&lt;/span&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 12pt; mso-ascii-font-family: calibri; mso-fareast-font-family: 'times new roman'; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;var cells = rows[selectedIndex].GetCells();&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;// Only two visible cells are retrieved&lt;/span&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 3.75pt"&gt;&lt;span style="font-size: 12pt; mso-ascii-font-family: calibri; mso-fareast-font-family: 'times new roman'; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;var CompanyName = cells[2].Text;&lt;span style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;// Hidden cells[2] doesn’t exists…&lt;span style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 3.75pt"&gt;&lt;span style="font-size: 12pt; mso-ascii-font-family: calibri; mso-fareast-font-family: 'times new roman'; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 3.75pt"&gt;&lt;span style="font-size: 12pt; mso-ascii-font-family: calibri; mso-fareast-font-family: 'times new roman'; mso-hansi-font-family: calibri; mso-bidi-font-family: calibri"&gt;Thanks.&lt;/span&gt;&lt;span style="font-family: 'times new roman','serif'; font-size: 12pt; mso-fareast-font-family: 'times new roman'"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt"&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</description></item></channel></rss>