﻿<?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 - Number of rows in Unbound Child combo</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Number-of-rows-in-Unbound-Child-combo/</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>Number of rows in Unbound Child combo</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Number-of-rows-in-Unbound-Child-combo/</link><pubDate>Fri, 19 Feb 2010 14:54:27 GMT</pubDate><dc:creator>ellpan</dc:creator><description>&lt;p&gt;Hi Andi,&lt;/p&gt;
&lt;p&gt;Thank you for the details. I will test that solution.&lt;/p&gt;
&lt;p&gt;I found a way around to do what I needed passing Server side data to a hidden control and retrieving it with Client side code.&lt;/p&gt;
&lt;p&gt;Your solution may be better than mine.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Alla&lt;/p&gt;</description></item><item><title>Number of rows in Unbound Child combo</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Number-of-rows-in-Unbound-Child-combo/</link><pubDate>Thu, 18 Feb 2010 01:16:57 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Ellen,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;As I mentioned our your last post before, we cannot get the total of rows count before the WebCombo shows the dropdown list first and retrieve the filtered data. The workaround for this scenario is by showing the dropdown list first then, after that, we can get the total row of its value. In here, I show the total row in a HTML TextBox. Here are the snippet:&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;function WebCombo1_OnAfterItemSelected(controlId)
        {
            var WebCombo1 = ISGetObject(controlId);
            var WebCombo2 = ISGetObject("WebCombo2");
            var count;
           
            WebCombo2.SetFocus()
            WebCombo2.ShowDropDown();
            setTimeout(function()
            {
                count = WebCombo2.GetRowsCount()
                document.getElementById("Text1").value = count;
                WebCombo2.HideDropDown();
            }, 800);
            return true;
        }&lt;/pre&gt;
&lt;p&gt;      &lt;span style="font-size: 9pt; "&gt;I hope it helps and please do not hesitate to ask if you have any other questions. Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Number of rows in Unbound Child combo</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Number-of-rows-in-Unbound-Child-combo/</link><pubDate>Tue, 16 Feb 2010 20:34:20 GMT</pubDate><dc:creator>ellpan</dc:creator><description>&lt;p&gt;I posted this question as a Discussion type, but didn't get an answer. Hopefully after I post it as a Question, I will get a better result.&lt;/p&gt;
&lt;p&gt;I populated two Unbound combos: one is a Parent and another is a Child that depends on the value selected in the Parent. Everything works fine except for the Count of rows in a Child combo. I select a value in Parent combo and 12 rows are populated in Child combo, what is correct.&lt;/p&gt;
&lt;p&gt;GetRowsCount() gives 50 rows (a total number of rows without a filter). &lt;span style="font-family: 'times new roman', 'serif'; font-size: 12pt"&gt;TotalRetrievedRows() and&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: 'times new roman', 'serif'; font-size: 12pt"&gt;TotalRows() give 0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'times new roman', 'serif'; font-size: 12pt"&gt;I need to know the count in order to select a default value in Child: if Count &amp;gt; 1, don't select anything, if Count = 1, select that value.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'times new roman', 'serif'; font-size: 12pt"&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt"&gt;&lt;span style="font-family: 'times new roman', 'serif'; font-size: 12pt"&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>