﻿<?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 highlight a value in the WebCombo drop down list.</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-to-highlight-a-value-in-the-WebCombo-drop-down-list/</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 highlight a value in the WebCombo drop down list.</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-to-highlight-a-value-in-the-WebCombo-drop-down-list/</link><pubDate>Tue, 31 Aug 2010 03:36:57 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Daniele,&lt;/p&gt;&lt;p&gt;I think you missunderstood the part I explained.&lt;br /&gt;&lt;br /&gt;Your code would not be called.&lt;br /&gt;It is because you integrate WebCombo into WebGrid and called those codes OnAfterAdd.&lt;br /&gt;As I said before, you could not do this because you are no longer in EditMode of WebGrid.&lt;/p&gt;
&lt;p&gt;In this case, WebCombo is only edit mode of WebGrid.&lt;br /&gt;You have to in edit mode in a cell which used WebCombo. With this way, you can use your code.&lt;br /&gt;&lt;br /&gt;If you are not in edit mode, you only can use SetText for WebGrid cell object, not in WebCombo.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;e.g &lt;br /&gt;Try to call those code with a button click.&lt;br /&gt;But you will need to select a row and use code to active edit mode of the selected row.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Handy&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to highlight a value in the WebCombo drop down list.</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-to-highlight-a-value-in-the-WebCombo-drop-down-list/</link><pubDate>Mon, 30 Aug 2010 09:41:11 GMT</pubDate><dc:creator>danielerm78</dc:creator><description>Ok,&lt;p&gt;but I don't understan this:&lt;/p&gt;
&lt;p&gt;If I try to open manually by code the WebCombo,for example after I inserted a row in the event OnAfterAdd,using this code&lt;/p&gt;
&lt;p&gt;var combo = ISGetObject("WebComboProd");&lt;br /&gt; combo.SetText(lastProductInserted);&lt;br /&gt; combo.LoadValue();&lt;br /&gt; combo.SetFocus();&lt;br /&gt; combo.ShowDropDown();&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;the combo does not show the list box!&lt;/p&gt;
&lt;p&gt;This because (I think) using the method SetText with the last product number inserted&lt;/p&gt;
&lt;p&gt;(a whole product number) the combo box returns only one row.&lt;/p&gt;
&lt;p&gt;But why,If I'm using the property &lt;span id="result_box" class="short_text"&gt;&lt;span style="" title=""&gt;AlwaysShowAllRownOnDropDown set to true?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" class="short_text"&gt;&lt;span style="" title=""&gt;I expect all products even if I put in the setText method the last product inserted.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" class="short_text"&gt;&lt;span style="" title=""&gt;I should use another method instead of setText to initialize the search of the combo?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" class="short_text"&gt;&lt;span style="" title=""&gt;Because my target is &lt;/span&gt;&lt;/span&gt;&lt;span id="result_box" class="short_text"&gt;&lt;span style="" title=""&gt;to see all products &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" class="short_text"&gt;&lt;span style="" title=""&gt;in the list box but highlight the product used in the setText method!!!!&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span id="result_box" class="short_text"&gt;&lt;span style="" title="" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" class="short_text"&gt;&lt;span style="" title=""&gt;Thanks in advanced,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" class="short_text"&gt;&lt;span style="" title=""&gt;Daniele Barbini&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to highlight a value in the WebCombo drop down list.</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-to-highlight-a-value-in-the-WebCombo-drop-down-list/</link><pubDate>Tue, 24 Aug 2010 10:22:08 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Daniele,&lt;/p&gt;&lt;p&gt;Of course it will not open the dropdown. You called it OnAfterAdd client side event. It will not work because it already exit edit mode in WebGrid.&lt;/p&gt;
&lt;p&gt;Also, if you click on dropdown arrow, the records should listed all instead of only one if you use AlwaysShowAllRowsOnDropDown properties true.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How to highlight a value in the WebCombo drop down list.</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-to-highlight-a-value-in-the-WebCombo-drop-down-list/</link><pubDate>Tue, 24 Aug 2010 04:30:46 GMT</pubDate><dc:creator>danielerm78</dc:creator><description>&lt;p&gt;Hello Handy Surya,&lt;/p&gt;&lt;p&gt;I known if I put in the edit combo a product number for exmaple '0080 010' ,and the combo has&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;the property EntryMode on InstantLookup mode, if I click on the bootm arrow with the mouse&lt;/p&gt;
&lt;p&gt;the drop down box is opened and the product highlight is properly '0080 010' and I see all products.&lt;/p&gt;
&lt;p&gt;But if I simulate this &lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;behavior by code, for example after  that I inserted the first product, in the client event&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;OnAfterAdd of the WebGrid calling the following methods of the combo:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;combo.SetText(lastProductInserted) in this case last product inserted is the product below (0080 010)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;combo.LoadValue()&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;I can see in the edit of the combo the last product inserted (0080 010)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;but the dropdown list is not opened also if I use in the code the function ShowDropdown and if I set&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;the property ForcedDropDown to true.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;So the first question Why the combo not open the DropDown list?&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;In addition if open the droodown list cliccking by the mouse on the bottom arrown of the combo,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;the dropdown list is opend but I see only the product number '0080 010' instead of all.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;I aspect this because the property AlwaysShowAllRownOnDropDown set to true.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;The second question is:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;Because I not see all products but only one?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style="" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;Thanks again.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="short_text" id="result_box"&gt;&lt;span title="" style=""&gt;Daniele Barbini.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to highlight a value in the WebCombo drop down list.</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-to-highlight-a-value-in-the-WebCombo-drop-down-list/</link><pubDate>Mon, 23 Aug 2010 12:53:07 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Daniele,&lt;/p&gt;&lt;p&gt;If I am not mistaken, highlight is only for selected items. &lt;/p&gt;
&lt;p&gt;But for your scenario, If the edit item is not available, it will be inserted. &lt;br /&gt;If you open the dropdown, it would be automatically selected and highlighted because you have not edit or change your selection. WebCombo will still recognize it as current selection.&lt;br /&gt;So, I think it is no problem with that. &lt;br /&gt;As you described, it seems you only want to show one selection and it seems case sencitive.&lt;br /&gt;Unless you don't set '&lt;b&gt;AlwaysShowAllDropDowns&lt;/b&gt;' yes, the dropdown should show only one selection.&lt;/p&gt;
&lt;p&gt;Except, if you have 1 or more items that have same text. You could not expect for only one result because WebCombo would automatically filter.&lt;/p&gt;
&lt;p&gt;Please let me know if I am mistaken in understanding your requirement.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>How to highlight a value in the WebCombo drop down list.</title><link>http://www.intersoftsolutions.com/Community/WebCombo/How-to-highlight-a-value-in-the-WebCombo-drop-down-list/</link><pubDate>Mon, 23 Aug 2010 12:11:29 GMT</pubDate><dc:creator>danielerm78</dc:creator><description>Hi,&lt;br /&gt;&lt;br /&gt;I have a WebCombo in the first cell of the WebGrid.&lt;br /&gt;&lt;br /&gt;The possible vales selectable are:&lt;br /&gt;&lt;br /&gt;0070 050&lt;br /&gt;&lt;br /&gt;0070 070&lt;br /&gt;&lt;br /&gt;0080 010&lt;br /&gt;&lt;br /&gt;0080 020&lt;br /&gt;&lt;br /&gt;So, is there a way to select an item (just highlight) in the list of the combo without select it?&lt;br /&gt;&lt;br /&gt;For example if a write in the combo edit '0080 010', it is possible&lt;br /&gt;&lt;br /&gt;keeping the drop down list open and to have highlight only the number inserted in the&lt;br /&gt;&lt;br /&gt;combo edit ('0080 010')?&lt;br /&gt;&lt;br /&gt;Or better if I write in the edit combo '0080' the value highlight should be '0080 010' because the first&lt;br /&gt;&lt;br /&gt;that begin with '0080' and if i add '02' in this way '0080 02' the value highlight should be '0080 020' always keeping the dropdown of the combo opened.&lt;br /&gt;&lt;br /&gt;Thanks in advanced.&lt;br /&gt;Daniele Barbini&lt;br /&gt;</description></item></channel></rss>