Custom draw dropdown list items

Hi all,
I'm working on porting some plugins from CS6 to CC 2014.
One issue I'm stumped upon, is that with CS6, I'm able to customize the drawing behavior of items inside a dropdown, by overriding the methods in "IOwnderDrawItem", that was aggregated on "kDropDownListWidgetBoss".
But it seems that with CC SDK,
  - The "IOwnerDrawItem" is no longer aggregated to "kDropDownListWidgetBoss", and
  - The "IOwnerDrawItem" no longer has the "DrawItem" method.
The porting guide does not seem to provide a solution for this. So I'm looking for help about how I can achieve this with CC.
Thanks a lot.
-Jeff

I think I have found the solution/workaround for this. Just posting back here as I do see there are quite some viewers, and hope this would help others that run into this same issue.
Basically, I think the previous SDKs allowed "DrawItem" that essentially provided a quick shortcut to allow custom drawing of items inside a string-content dropdown list. And inside the method implementation, you would need to grab the string content of the item, retrieve the more domain specific data based on the string, and draw things out.
And with CC SDK, it seems that it wants to discourage this shortcut, and promote encapsulation of dropdown list items. So now, you'll have to declare a custom widget type (extending "kBaseWidgetBoss"), that aggregates a custom implementation of "IID_ICONTROLVIEW", which does the custom drawing. And when populating the dropdown, you'll need to create instances of the custom widget type, and put them into the dropdown list via dropdown controller.
And for the dropdown list itself, you might want to declare your custom type by extending "kOwnerDrawDDListWidgetBoss", where you can then provide custom implementation of "IID_IOWNERDRAWITEM", to achieve specific item measuring needs.
I think all of this is good intent and cleaner, just that I wished there were clearer instructions in the porting guide.
-Jeff

Similar Messages

  • How to add Gap between dropdown List Items - ComboBox in MFC VC++

    How to add Gap between dropdown List Items - ComboBox in MFC VC++

    Did you tried SetItemHeight() inside your App .
    Thanks
    Rupesh Shukla

  • Calculate DropDown List items values

    I have 7 DDLists for the availability of the employees for 7 days the week.
    DD1, DD2, DD3, DD4, DD5, DD6, DD7
    The list items for all are the same:
    Day, Evening, Night, N/A(Not Available)
    How I can calculate  in a field  the Total Days of Availability
    and in a separate field Total Days N/A?
    Thank you

    Hi,
    A few things to correct
    1) You must use square brackets -- My Fault -- not sure how that one got past me!
              DDLday[i]
    2) DDLs can't have values the same for the items meaning change them to:
         0 = N/A, 1= Day, 2= Eve, 3= Nite
    3) You only need the 1 script --don't place script on the NumNA field--delete that whole script
    4) At the end of the script, you must reference the N/A Field correctly. You're not using the name you gave it--you're using the name I gave it so it can't find it.
         NumNA = notAvailable  //Either rename the NA field to NumNA  or change the script but putting the field name you're using
    5) Finally, I don't remember coming accross this before, but the script needs to have the last 2 lines switched. It seems to matter.
    var available = 0
    var notAvailable = 0
    for i = 0 upto 6 do
         if(DDLday[i] > "0")then    //square brackets
              available = available + 1
              continue
         else
              notAvailable = notAvailable + 1
              continue
         endif
    endfor
    NumNA = notAvailable     //NumNA is the other field
    $ = available                       // this must be the last line
    So, 2 of the problems were my fault.
    That should do it.
    Stephen

  • Missing dropdown list items?

    I have tried the following two ways to get the string corresponding to the selected value from a dropdown box.
        public void dropDown1_processValueChange(ValueChangeEvent event) {
            financewebapp.SessionBean1 sb = (financewebapp.SessionBean1) getBean("SessionBean1");
            Long pid = (Long) event.getNewValue();
            String tmp = new String("");
            com.sun.webui.jsf.model.Option[] options = (com.sun.webui.jsf.model.Option[]) dropDown1.getItems();
            int count = options.length;
            com.sun.webui.jsf.model.Option opt = null;
            for (int i = 0 ; i < count ; i++) {
                opt = options;
    if (pid == opt.getValue()) {
    tmp = opt.getLabel();
    break;
    java.util.Iterator iter = dropDown1.getListItems();
    String tmp = new String("");
    while(iter.hasNext()) {
    com.sun.webui.jsf.model.list.ListItem opt = (com.sun.webui.jsf.model.list.ListItem) iter.next();
    if(opt.getValue().equals(this.dropDown1.getValue().toString())) {
    tmp = opt.getLabel();
    break;
    Getting the value is easy, and the code shown for obtainig it from the event works fine (I get the correct, non-null value).
    *However, with the code that is not commented out, options always has a value of null, and with the code that is commented out, iter is non-null, but iter.hasNext() always returns false.* 
    How is this possible?
    The control is populated using a data provider, and *when the page is displayed, all of the expected items appear!*  There are several dozen of them. 
    So how is it possible that I get all the right items being displayed, and the correct VALUE returned for processing within the change event handler, but neither way I have tried to access the corresponding  string works?  It is as if both of these functions (dropDown1.getItems() and iter.hasNext()) do not know about items in the control.
    What makes this especially baffling is that nearly identical code (changes only relating to the page the controls are on and the names of the controls) with other dropdowns on other pages works just fine.
    Any ideas as to why this particular instance is giving me grief?  And, more importantly how to fix it?
    Thanks
    Ted                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I used to say the same. But I got hooked on visual editors with Borland's C++ Builder when I used a visual editor to create a DB interface prototype with more than 10,000 LOC in two weeks (didn't sleep much during, and too much after, but I was much younger then). That was a dream that made working with MFC feel like a nightmare! Yes, I'll admit I started with C++ long before I started with Java, and I still use it for high performance computing. As interesting as JSF is, it doesn't feel as mature or robust as VCL or .NET or Swing, but in time ....
    But with this problem, there are trade-offs. A backing map is fine if you have a small number of items that are not likely to change much. But the cost of such a map can get large if there is a selection of, or from, a large number of items: wasteful use of memory and/or bandwidth connecting to the RDBMS start becoming concerns. I do, in fact, use a number of backing sets and maps in this application, but this is one context where they may not be as appropriate. It isn't so much that I can't work around this, but rather that the dropdown component isn't working as advertized in this instance.
    Thanks
    Ted

  • Custom metadata dropdown lists

    My company recently purchased Lightroom to catalog our enormous collection of photographs. We need a way to attach industry specific metadata to our photos in order to retrieve them easier and faster. I have found a couple of free plugins but I haven’t quite found a way to create drop down lists that our users can use to select the correct terminology. My fear is that if we leave it as a text field, a user may use different terminology or misspell something, making it impossible to create a comprehensive Smart Collection. Is what we are looking for even possible with Lightroom? If so, can anyone possibly point me in the direction of someone who could build a custom plug-in for us? Or at least provide me with some training?

    Here is a partial list of providers for custom LR plug-ins:
    http://thepluginsite.com/resources/commercial_lightroom.htm
    BTW, you will get a lot more help (and useful links and suggestions) if you post your question to the general Lightroom discussion forum rather than in this Adobe Labs forum.

  • How to read the selected value of a dropdown list box

    Hello,
    I have 2 custom fields which are of type dropdown list on Accounts(CRMM_ACCOUNT) PCUI application details tab.I need to read the selected value of first dropdown list item,based on that second dropdown list will be populated.
    I know where to populate the dropdown list box,it is in FILL_DROPDOWN_LISTBOX.
    I dont know how to trap the selection made on dropdown list.
    PLease guide me on how to trap the dropdown list field selection value.
    Thanks in advance.
    Thirumala.

    Hello,
    Check what is done in standard for the fielf REGION which is inked to the country.
    Otherwise, you can do the following :
    - in field group customizing, for field 1, flag the 'send request' flag. So, when you change the value in this field via the dropdown, the MAC methods are immediately called.
    - Put the new value in a global variable (GV).
    - in the fill_dropdown_listbox method, get the value from this GV and based on it, filter the values for the dropdown of field 2.
    Hope this will help you,
    Regards,
    Frederic

  • How to set a keyboard event, which can response to dropdown list?

    Hi every one
    Can you set a keyboard keydown event for select the dropdown list item?
    Thanks
    Regard
    John
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    var
      w = new Window('dialog {orientation: "row", alignChildren: ["", "top"]}',"Indesign Tricks Wizard_Beta_V3", undefined, {closeButton: false}),  
      stringList = ["01   Close and SAVED",                                                        //       0
            "02   Close WITHOUT save",                                                   //       1
            "03   Save all files",                                                                //       2
            "04   Reverse",                                                                        //       3
            "-",                                                                                          //       4
            "05   Remove empty pages",                                                  //       5
            "-",                                                                                          //       6
            "06   Update years on Master in all opening Doc",               //       7
            "07   Years + 1 in Specific cells",                                          //       8
            "08   Copy and paste to Next Master",                                 //       9
            "-",                                                                                         //       10
            "09   Bring Styles and Swatches to next Doc",                      //       11
            "10   DEL and Replace Color",                                               //       12
            "11   Remove unused color",                                                 //       13
            "-",                                                                                         //       14
            "12   Remove missing link in all open files",                         //       15
            "13   Remove layer and missing link ",                                  //       16
            "14   Batch import styles from source document",               //       17
            "-",                                                                                         //       18
            "15   Gen Revised PDF",                                                        //       19
            "16   Report empty return at top",                                       //       20
            "17   Find-Change Paragraph Names",                                //       21
            "-",                                                                                         //       22
            "18   Break link from story",                                                //       23
            "19   Joint link to story",                                                       //       24
            "20   Extract pages",                                                            //       25
            "21   Joint text fame together",                                           //       26
            "22   Resize selected text"],                                                //       27
      mReminderString = "\"Batch import styles from source document\" usually cause indents problem.",
      lastSelected = Number(app.extractLabel("dialogWizard") ),
      p = w.add("panel", undefined, "Choose a job to do:"),
      s = p.add("group"),
      mDD = p.add("dropdownlist", undefined, stringList),
      mRem = p.add("statictext", undefined, mReminderString, {multiline: true} ),
      b = w.add('group {orientation: "column"}');
         mDD.preferredSize = [320,20];
         mRem.preferredSize = [320,30]; // set reminder height as 20 * line count (here 2 lines)
         if ( !lastSelected ) mDD.items[0].selected = true;
         else mDD.items[lastSelected].selected = true;
    // |||||||||||||||||||||||||||||||||||||||||||||||| modify reminder font here |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
             w.graphics.backgroundColor = w.graphics.newBrush (w.graphics.BrushType.SOLID_COLOR, [1, 0.26, 0.2]);
         mRem.alignment = "left";
         mRem.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mRem.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         p.graphics.font = ScriptUI.newFont ("Arial", "Bold", 10);
         p.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         mDD.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mDD.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 0.26, 0.2], 1);
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            var myIcon = "";
            var ib = b.add ('iconbutton', undefined, myIcon);
                  ib.onClick = function() {
                         w.close(1);
            w.addEventListener ("keydown", function(k) {if (k.keyName == "Enter") w.close(1);})
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            b.add ('button', undefined, "取り消す", {name: "Cancel"}); 
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
    w.show();
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Hi Peter
    look into script as below:
    //======================================================================================== =======================================================
    var
      w = new Window('dialog {orientation: "row", alignChildren: ["", "top"]}',"Indesign Tricks Wizard_Beta_V3", undefined, {closeButton: false}),  
      stringList = ["01   Close and SAVED",                                                        //       0
            "02   Close WITHOUT save",                                                   //       1
            "03   Save all files",                                                                //       2
            "04   Reverse",                                                                        //       3
            "-",                                                                                          //       4
            "05   Remove empty pages",                                                  //       5
            "-",                                                                                          //       6
            "06   Update years on Master in all opening Doc",               //       7
            "07   Years + 1 in Specific cells",                                          //       8
            "08   Copy and paste to Next Master",                                 //       9
            "-",                                                                                         //       10
            "09   Bring Styles and Swatches to next Doc",                      //       11
            "10   DEL and Replace Color",                                               //       12
            "11   Remove unused color",                                                 //       13
            "-",                                                                                         //       14
            "12   Remove missing link in all open files",                         //       15
            "13   Remove layer and missing link ",                                  //       16
            "14   Batch import styles from source document",               //       17
            "-",                                                                                         //       18
            "15   Gen Revised PDF",                                                        //       19
            "16   Report empty return at top",                                       //       20
            "17   Find-Change Paragraph Names",                                //       21
            "-",                                                                                         //       22
            "18   Break link from story",                                                //       23
            "19   Joint link to story",                                                       //       24
            "20   Extract pages",                                                            //       25
            "21   Joint text fame together",                                           //       26
            "22   Resize selected text"],                                                //       27
      mReminderString = "\"Batch import styles from source document\" usually cause indents problem.",
      lastSelected = Number(app.extractLabel("dialogWizard") ),
      p = w.add("panel", undefined, "Choose a job to do:"),
      s = p.add("group"),
      mDD = p.add("dropdownlist", undefined, stringList),
      mRem = p.add("statictext", undefined, mReminderString, {multiline: true} ),
      b = w.add('group {orientation: "column"}');
         mDD.preferredSize = [320,20];
         mRem.preferredSize = [320,30]; // set reminder height as 20 * line count (here 2 lines)
         if ( !lastSelected ) mDD.items[0].selected = true;
         else mDD.items[lastSelected].selected = true;
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
                mDD.active = true;                 //this syntax work in PC, but not work in MAC
                mDD.addEventListener ("keydown", function (k)
                        k = k.keyName.toLowerCase();
                                var i = 0;
                                        while (i < numbers.length-1 && numbers[i].charAt(0).toLowerCase() != k)
                                                   {++i;}
                                                if (numbers[i].charAt(0).toLowerCase() == k)
                                                                mDD.selection = i;
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
    // |||||||||||||||||||||||||||||||||||||||||||||||| modify reminder font here |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
             w.graphics.backgroundColor = w.graphics.newBrush (w.graphics.BrushType.SOLID_COLOR, [1, 0.26, 0.2]);
         mRem.alignment = "left";
         mRem.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mRem.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         p.graphics.font = ScriptUI.newFont ("Arial", "Bold", 10);
         p.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);
         mDD.graphics.font = ScriptUI.newFont ("Arial", "Bold", 11);
         mDD.graphics.foregroundColor = mRem.graphics.newPen (w.graphics.PenType.SOLID_COLOR, [1, 0.26, 0.2], 1);
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            var myIcon = ""
            var ib = b.add ('iconbutton', undefined, myIcon);
                  ib.onClick = function() {
                         w.close(1);
            w.addEventListener ("keydown", function(k) {if (k.keyName == "Enter") w.close(1);})
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
            b.add ('button', undefined, "取り消す", {name: "Cancel"}); 
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||
    w.show();
    //======================================================================================== =======================================================
    Thank you
    Regard
    John

  • Immediate Submit From Dropdown List Selection

    In JSF what is the best way to get the form to submit immediately when a dropdown list item is selected? I know I can use a JavaScript onchange="..." but just wondering if there is a more standard/cool way of doing this in JSF.
    Thanks!
    Vaughn

    No. Simply creating a ValueChangeListener won't do what he wants. When he used the term "immediately" he meant "as soon as the value changes" and not "immediate" in the sense of bypassing Faces lifecycles. This can be seen from his reference to "onchange=".
    The suggestion I am about to make solves one problem but creates another.
    In addition to valueChangeListener= "#{...}" and immediate="true", put onchange="submit()". This will execute your event as soon as the value changes BUT...
    Faces navigation doesn't work any more when you return a navigation target.
    How do we get Faces Navigation to keep working when we use "onchange" ?

  • Open tabbed panels from dropdown list option value

    I have about 10 tabbed panels on my page.
    I created a dropdown list, <option value></option value>.
    I need to open the specific panel when an option is selected from the dropdown list.  I know how to open tabbed panels by URL, a button, and a link on the same page.  But how do i open a tabbed panel from a dropdown list.  The <option value> in IE does not allow for onclick events in IE. 

    Yes and I have been trying to find that.  Right now I have it setup where the onchange event is "location = this.options[this.selectedIndex].value;">
    and then I have each<option> in the dropdown list with teh value=http://URL.com?tab=3#tabbedpanels1.
    It works but it isn't as dynamic as I would like.  When i select each option in the dropdown, it refreshes the page and opens the correct tabbed panel. Then the dropdown list is reset to the default value because the page refreshed.  I wanted to do this without the page refreshing, that way the dropdown list item remains at what I selected to open the tabbedpanel. and plus, I didn't want the page to refresh everytime but to just open the tabbedpanel the same way as if i made a button to open it.

  • Hide list item menu using CSR

    Hi,
          Is it possible to hide specific custom actions from list item menu for an XSLTListView webpart using CSR... The list has some custom actions created through SPD and we wanted to hide the out of the box list item menus. Could
    someone please point me to some examples.. and what would be an alternative in case this is not possible.. jquery...?
    Thanks
    Anisree

    In the View Settings under the Filter option check "Show Items only when the following is true:"
    Select the Expiry Date column for the "Show the items when column option".
    Condition should be "is greater than", or "is greater than or equal to" if they don't expire until the end of the current day.
    And for the value put [Today] including the square brackets.

  • Custom list column not showing up in View Order by or Group by dropdown list

    Hi All,
    I have created a custom list with a custom column called "Description". Some items in the list do not have a description. What I wanted to do is create a view where the items with a description show first, and the items with no description are
    at the bottom of the list. I thought I could make a simple view that uses the Order by or Group by on the description column.
    The problem I am having is the description column doesn't show up in the dropdown list for either Order by or Group by within the custom view. Can someone please tell me why this happens and if there is anything I can do to rectify this problem.
    I hope you can help
    Colin

    Hi,
    I believe the "Description" field type is Multiple Lines of Text. Sorting doesn't allow in this field type. In order to do the sorting, you would require to create additional column like single line of text column (note that it supports only 255
    chars and require to truncate the data if more than 255) and update the data using event receiver or workflow. and do the sorting with that column.
    kmhsad

  • Javascript needed - need checkbox to check automatically based on selected item from dropdown list

    I am building a fillable form.  In this form, I have created items in a dropdown list.  Based on the item picked from the dropdown list, I need a corresponding checkbox to be checked.  I am certain there is an easy javascript to resolve my current problem.  Please assist.
    For example: dropdown list field (SubSupplier1) -   Demolition                            export value 2
                                                                                    Rough Carpentry Labor       export value 4
                                                                                    Rough Carpentry Material    export value 3
    I need the corresponding checkbox (SalesTax1) to automatically be checked when Demolition (export value 2) or Rough Carpentry Material (export value 3) is selected.
    Thank you,
    Jennifer

    Hi Jennifer,
    This should help you do what you need. Place it in the Custom Calculation property of the dropbox and select "commit selected value immediately" in the fields options:
    var drop = this.getField("SubSupplier1");
    var check = this.getField("SalesTax1");
    if ((drop.value == 2) || (drop.value == 3)){
    check.checkThisBox(0,true);
    else {
    check.checkThisBox(0,false);
    The code is asking if the export value of the field is either '2' or '3' and if so, check the box.
    Otherwise uncheck the box.
    If you don't want it to uncheck on other selections, remove the 'else' section of code.

  • Get the Version history of a sharepoint 2013 Custom List item

    Hi All,
    I am having doubt to retrieve the field version information with the comments.
    For this field i am done like this
    1.Creating a custom list
    2.And enable versioning for the list
    3.And add a field with field type 'Multiple Lines of Text' and in the Addition Column Settings section 'select yes radio button option in 'Append changes to the Existing text'.
    4.If we done like this the changes to the list item are available outside of field control.
    Can any one help me regarding this field to get the all the versions of list item along with modified data.

    hi Asatish,
    Thanks for posting your issue, Kindly browse the below mentioned URLs to know about the fixes of this issue
    http://berg-henry.blogspot.in/2010/11/custom-list-form-with-version-history.html
    http://somnathmatere.blogspot.in/2013/10/sharepoint-2010-custom-display-form.html
    http://blog.qumsieh.ca/2009/01/29/understanding-the-append-changes-to-existing-text-option/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Custom itemRenderer in a F3 ComboBox on specific list items after combobox creation

    Hi,
    I'm trying to set a specific list item in a mx combobox to have a custom item renderer, the problem is that I cannot do this via mxml, it needs to be done via actionscript at a later stage, eg: combobox gets created, combobox  gets populated, user does other tasks, combobox needs to set one or more items in the combobox to have icons (via item renderer)..
    I can do this via the onChange event, but it only applies the icon when the combobox is opened and there is a slight delay so you can see the icon being added.
    Thanks in advance for any help
    J

    Hi,
    If I understand correctly, you can create you comboBox with all items at the begining:
    http://blog.flexexamples.com/2007/08/18/displaying-icons-in-a-flex-combobox-control/
    After that, base on user task, you can filter you comboBox:
    http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-items-in-a-datagrid-in- flex/
    In this way you don't see the delay.
    Johnny
    Please rate answers.

  • On and iPad how to Allow User To Enter Custom Text  (Dropdown only) Enables users to enter a value other than the ones in the list.

    On an iPad, how do I :
    Allow User To Enter Custom Text
    (Dropdown only) Enables users to enter a value other than the ones in the list.'?

    Are you using the built-in Currency option under the Format tab? If so,
    what you're describing should not happen.

Maybe you are looking for

  • How can I include local fonts in my finished edge reflow website?

    How can I include local fonts in my finished edge reflow website? The website has to run without internet connection and the use of webfonts. I have already tried to to include fonts manually but this wasn't working.

  • Using ISE guest store via RADIUS

    I have a question concerning the guest store on the ISE. I would like to establish a guest portal on a WLC (currently running version 7.0.220.0). The guest network shouldn't have any connection to the company network. So I can't redirect to the ISE g

  • Using FlashBuilder 4 with Flex sdk 3.5

    Has anyone experianced any problems with using the new FlashBuilder 4 together with the Flex 3.5 sdk?

  • FB03 - Display as list - Default setting?

    Hello, is it possible to set in transaction FB03 the "Go to - Display as list" as default setting? Thank you for any answer!

  • Jump to a Named Anchor when loading an HTML doc

    I have a CollapsiblePanel with a Content Link to a Named Anchor in info.html and I thought I could use loadURL() to load the page into the Div "thetext" but it does not work. Can Spry Jump to a Named Anchor when it loads an HTML doc? onClick: Spry.Ut