﻿<?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 - how to set value to webcombo with out use settimeout</title><link>http://www.intersoftsolutions.com/Community/WebCombo/how-to-set-value-to-webcombo-with-out-use-settimeout/</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 set value to webcombo with out use settimeout</title><link>http://www.intersoftsolutions.com/Community/WebCombo/how-to-set-value-to-webcombo-with-out-use-settimeout/</link><pubDate>Tue, 08 May 2012 22:53:20 GMT</pubDate><dc:creator>bernard</dc:creator><category>webcombo setvalue</category><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-language: zh-cn"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Hi Jarvan, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-language: zh-cn"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-language: zh-cn"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-language: zh-cn"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;I have added this on feature request. I will let you know any news I hear from the team regarding this feature request. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-language: zh-cn"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-language: zh-cn"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-language: zh-cn"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Regards, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="mso-fareast-language: zh-cn"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Bernard &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>how to set value to webcombo with out use settimeout</title><link>http://www.intersoftsolutions.com/Community/WebCombo/how-to-set-value-to-webcombo-with-out-use-settimeout/</link><pubDate>Tue, 08 May 2012 20:57:14 GMT</pubDate><dc:creator>jjw.jiang@gmail.com</dc:creator><category>webcombo setvalue</category><description>&lt;p&gt;Ok &lt;span style="background-color: rgb(255, 255, 255); color: rgb(63, 63, 63); font-family: calibri; font-size: 15px; line-height: 18px; text-align: left; "&gt;Bernard&lt;/span&gt;&lt;span style="font-size: 10pt; "&gt;,i will use settimeout to resolve this problem.I thought the property 'IsInProgress' will be useful but it always same value.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;It suddenly occurred to me shortly before i doing something with webGrid and it has the same problem that i did not know when to set value to webGrid in Client-Side,and i resolved the problem by using settimeout too.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Is the any possible to add some property or event to check WebControls are already loaded and ready to set value in the later version or some patch?I just feel it very strange that this product can't  finish such a simple request accurately.&lt;/p&gt;</description></item><item><title>how to set value to webcombo with out use settimeout</title><link>http://www.intersoftsolutions.com/Community/WebCombo/how-to-set-value-to-webcombo-with-out-use-settimeout/</link><pubDate>Tue, 08 May 2012 01:05:46 GMT</pubDate><dc:creator>bernard</dc:creator><category>webcombo setvalue</category><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Hi Jarvan,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;I think it can’t be done without settimeout because server need time to return the result to the client. Unfortunately for now, there’s no script or event which check if the WebCombo is already loaded and ready to set value from the client-side. That’s why the client need timeout to set the value.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;There’s no way to resolved this without settimeout except by using server-side method. Moreover if you used server-side method, you can set the value without knowing the text which will appear in WebCombo.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;I hope this helps you.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Bernard&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>how to set value to webcombo with out use settimeout</title><link>http://www.intersoftsolutions.com/Community/WebCombo/how-to-set-value-to-webcombo-with-out-use-settimeout/</link><pubDate>Sun, 06 May 2012 21:39:53 GMT</pubDate><dc:creator>jjw.jiang@gmail.com</dc:creator><category>webcombo setvalue</category><description>&lt;p&gt;Hi Bernard,&lt;/p&gt;&lt;p&gt;I've seen your sample,&lt;font style="font-family: arial, 宋体; "&gt;&lt;span style="line-height: 20px; white-space: pre-wrap; "&gt;i'm afraid it will not work in my case.I have tried the event 'OnAfterItemSelected',i still can't set a default value to a bound webcombo without settimeout.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="font-family: arial, 宋体; "&gt;&lt;span style="line-height: 20px; white-space: pre-wrap; "&gt;I will describe my problem simply&lt;/span&gt;&lt;/font&gt;&lt;span style="line-height: 20px; white-space: pre-wrap; font-family: arial, 宋体; font-size: 10pt; "&gt;,now i have to set value to a bound webcombo &lt;b&gt;in clientside&lt;/b&gt;,and i can't use 'SetText' method because i only had the &lt;b&gt;value &lt;/b&gt;i need to be set and i don't know the text&lt;/span&gt;&lt;span style="line-height: 20px; font-size: 10pt; white-space: nowrap; "&gt;&lt;font style="font-family: arial, sans-serif; "&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="line-height: 20px; white-space: pre-wrap; font-family: arial, 宋体; font-size: 10pt; "&gt;So i just want to know,is there any way to confirm one webcombo is already loaded to be set &lt;b&gt;value &lt;/b&gt;&lt;/span&gt;&lt;b style="font-size: 10pt; font-family: arial, 宋体; line-height: 20px; white-space: pre-wrap; "&gt;in clientside&lt;/b&gt;&lt;span style="font-size: 10pt; line-height: 20px; white-space: pre-wrap; font-family: arial, 宋体; "&gt;&lt;b&gt; &lt;/b&gt;or some&lt;/span&gt;&lt;b style="font-size: 10pt; font-family: arial, 宋体; line-height: 20px; white-space: pre-wrap; "&gt; clientside &lt;/b&gt;&lt;span style="font-size: 10pt; font-family: arial, 宋体; line-height: 20px; white-space: pre-wrap; "&gt;events which can be triggered after one webcombo is already loaded and in the event i can success set a default &lt;/span&gt;&lt;b style="font-size: 10pt; font-family: arial, 宋体; line-height: 20px; white-space: pre-wrap; "&gt;value&lt;/b&gt;&lt;span style="font-size: 10pt; font-family: arial, 宋体; line-height: 20px; white-space: pre-wrap; "&gt; to&lt;/span&gt;&lt;b style="font-size: 10pt; font-family: arial, 宋体; line-height: 20px; white-space: pre-wrap; "&gt; &lt;/b&gt;&lt;span style="font-size: 10pt; font-family: arial, 宋体; line-height: 20px; white-space: pre-wrap; "&gt;the combo.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="font-family: arial, 宋体; "&gt;&lt;span style="line-height: 20px; white-space: pre-wrap; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>how to set value to webcombo with out use settimeout</title><link>http://www.intersoftsolutions.com/Community/WebCombo/how-to-set-value-to-webcombo-with-out-use-settimeout/</link><pubDate>Fri, 04 May 2012 00:05:36 GMT</pubDate><dc:creator>bernard</dc:creator><category>webcombo setvalue</category><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Hi Jarvan,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;I’ve made my own sample for this case. In my sample, I use Northwind as my database and my dataset, and I offer 2 methods for you. If you want to do it without timeout, I suggest you to choose server side method because it’s guarantee the existence of data from database. And the other method is using SetAdditionalFilters() in WebCombo client side function, but I haven’t check it on a large data. I also attached the sample for you. Hope it helps.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Bernard&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>how to set value to webcombo with out use settimeout</title><link>http://www.intersoftsolutions.com/Community/WebCombo/how-to-set-value-to-webcombo-with-out-use-settimeout/</link><pubDate>Thu, 03 May 2012 01:51:47 GMT</pubDate><dc:creator>jjw.jiang@gmail.com</dc:creator><category>webcombo setvalue</category><description>&lt;p&gt;Hi Bernard,&lt;/p&gt;&lt;p&gt;Thank for your reply first.The timeout i said comes from &lt;a href="http://www.intersoftpt.com/Community/WebCombo/Set-Default-Value/" target="_blank" style="font-size: 10pt; "&gt;this issue&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In my case,i can confirm the value of WebCombo1 has been set.Here is my temporary solution:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;ISGetObject("data_node").SetSelectedRowByValue(ctrl.datasource.db);
                if (ctrl.datasource.src != "") {
                    ISGetObject("data_table").LoadValue();
                    ISGetObject("data_table").ShowDropDown();
                    setTimeout(function () {
                        ISGetObject("data_table").SetSelectedRowByValue(ctrl.datasource.src);
                        if (ctrl.datasource.col != "") {
                            ISGetObject("data_col").LoadValue();
                            ISGetObject("data_col").ShowDropDown();
                            setTimeout(function () {
                                ISGetObject("data_col").SetSelectedRowByValue(ctrl.datasource.col);
                            }, 650);//temporary solution
                        }
                    }, 650);
                }&lt;/pre&gt;
&lt;p&gt; In this case,"&lt;span style="font-size: 10pt; "&gt;data_node&lt;/span&gt;&lt;span style="font-size: 10pt; "&gt;" just as &amp;nbsp;"webcombo1" i said before,"data_table" as "webcombo2" and "data_col" as "webcombo3"."data_node"Combo uses unbound mode,"data_table" linked to "data_node" and "data_col" linked to "data_table".I can confirm the value of webcombo1 has been success&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 10pt; "&gt;set because it's unbound mode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;As you see,i use 2 timeout to delay to set value of "data_table" and "data_col",now it works well but i have to wait for 1.3s ,in fact,if the delay has been set less than 600 which is 0.6s,the error will show to ask me to select "data_table" first.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please tell me if i did something wrong.&lt;/p&gt;&lt;span style="font-size: 10pt; "&gt; &lt;br /&gt;&lt;/span&gt;
&lt;p /&gt;</description></item><item><title>how to set value to webcombo with out use settimeout</title><link>http://www.intersoftsolutions.com/Community/WebCombo/how-to-set-value-to-webcombo-with-out-use-settimeout/</link><pubDate>Wed, 02 May 2012 06:29:57 GMT</pubDate><dc:creator>bernard</dc:creator><category>webcombo setvalue</category><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="color: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Hi Jarvan, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="color: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="color: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="color: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;I think this problem occurs not because the WebCombo2’s data is not populated. Personally, I still believe it’s because failed to set the value in WebCombo1. Therefore could you let me how do you bind the data and set the value in WebCombo1? By the way I don’t quite understand about the timeout that you said. As far as I know, we don’t use settimeout for LinkWebCombo feature. Perhaps you can let me know for the details. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="color: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="color: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="color: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Regards, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="color: #1f497d; mso-ascii-font-family: calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'times new roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Bernard &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>how to set value to webcombo with out use settimeout</title><link>http://www.intersoftsolutions.com/Community/WebCombo/how-to-set-value-to-webcombo-with-out-use-settimeout/</link><pubDate>Wed, 02 May 2012 04:06:12 GMT</pubDate><dc:creator>jjw.jiang@gmail.com</dc:creator><category>webcombo setvalue</category><description>&lt;p&gt;I have 3 webcombos and the webcombo2 is linked to webcombo1.&lt;/p&gt;&lt;p&gt;The problem is when i try to set value to webcombo2,it always alert 'please chose Webcombo1' even i already set the value of webcombo1.When i check the issues before, i found it's because when i try to set the value of webcombo2,its data is not populated yet,and solution of the issue is give a timeout delay to set value.&lt;/p&gt;
&lt;p&gt;Is there anyway i can&lt;font style="font-family: arial, sans-serif; "&gt;&lt;span style="white-space: nowrap; "&gt; set value without using settimeout ? because the load speed is different in different scene,&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="font-family: arial, sans-serif; "&gt;&lt;span style="white-space: nowrap; "&gt;i could not just &lt;/span&gt;&lt;/font&gt;&lt;span style="white-space: nowrap; font-family: arial, sans-serif; font-size: 10pt; "&gt;set a long enough timeout.&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>