﻿<?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 - UpdateUI invoke the BeforeItemSelected and AfterItemSelected </title><link>http://www.intersoftsolutions.com/Community/WebCombo/UpdateUI-invoke-the-BeforeItemSelected-and-AfterItemSelected/</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>UpdateUI invoke the BeforeItemSelected and AfterItemSelected </title><link>http://www.intersoftsolutions.com/Community/WebCombo/UpdateUI-invoke-the-BeforeItemSelected-and-AfterItemSelected/</link><pubDate>Tue, 18 Aug 2009 04:18:40 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;You could declare a variable as a flag, in our snippet we use IgnoreEvent variable to determine if the AfterItemSelected should be ignored during UpdateUI event.&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;var IgnoreEvent = false;&lt;br /&gt;&lt;br /&gt;function AddRowClientSide() {&lt;br /&gt;var wc4 = ISGetObject('WebCombo1');&lt;br /&gt;&lt;br /&gt;//Add new item in WebCombo&lt;br /&gt;&lt;br /&gt;IgnoreEvent = true;&lt;br /&gt;wc4.UpdateUI();&lt;br /&gt;IgnoreEvent = false;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function OnAfterItemSelected(ctrlId) {&lt;br /&gt;if (!IgnoreEvent) {&lt;br /&gt;var combo = ISGetObject(ctrlId);&lt;br /&gt;//Do functionality&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span size="2" color="#0000ff"&gt;&lt;span size="2" color="#0000ff"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span size="2"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>UpdateUI invoke the BeforeItemSelected and AfterItemSelected </title><link>http://www.intersoftsolutions.com/Community/WebCombo/UpdateUI-invoke-the-BeforeItemSelected-and-AfterItemSelected/</link><pubDate>Tue, 18 Aug 2009 03:45:36 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;when I invoke the method UpdateUI of WebCombo, the follwing events BeforeItemSelected and AfterItemSelected  are fired; on our handler, how to ignore these event for the UpdateUI.&lt;/p&gt;
&lt;p&gt;You told me to use a flag, so what is this flag?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Vincenzo&lt;/p&gt;</description></item></channel></rss>