combobox

Flex - ComboBox labelFunction Not Refreshing With Updating of an ArrayCollection

I have two issues with my ComboBox. My first issue is that when my ArrayCollection only has one item, for some reason I cannot select that first item. The change function set on the mxml never gets called when I try to select that one item. If I set a prompt, it works. I know that the item is not already selected because when debugging,...

ComboBox causes strange behavior on a Windows Form

I'm noticing some strange behavior when I add a ComboBox to my Windows Form: when I resize the Form without a ComboBox, it behaves correctly and the File menu stays where it's supposed to stay even when I drag the right corner as far left as possible. When I add the ComboBox and I try to do the same thing, then the File menu gets pushed ...

Flex 3 Using an ArrayCollection to Populate Both a Datagrid and a ComboBox

Hi, I use this arrayCollection to populate a Flex 3 Datagrid. I'd also like to use this arrayCollection to populate a comboBox with the Name node. In the arrayCollection, I've got the Name listed twice. I've got two rows in the Datagrid. If I set the ComboBox's labelfield to Name, then the Name will be listed twice in the ComboBox me...

How Can I Make a Flex 3 Datagrid Show only One Row of an ArrayCollection's Results?

Hi, Is there a way to make a Flex 3 Datagrid show only the first node of an arrayCollection, instead of showing all of the arrayCollection's data? myDGArray = [ {Name: "Judy", Talent: 'Pole-Dancing', Score: "40"}, {Name: "Jane", Talent: 'Yodelling', Score: "65"}, {Name: "Jim", Talent: 'Singing', Score: "82"} ...

WPF DataGrid ComboBox causes InvalidOperationException

I am getting an InvalidOperationException('DeferRefresh' is not allowed during an AddNew or EditItem transaction.) from my datagrid when I try to edit the value of a combo box column. The items I am showing all have a reference to one other item in the same list so this is what I am using the combobox for. It is bound to the same collect...

django combobox

ok so i`m makeing an app that has a file name field upload file field and a combobox, lets say I have smth like this for the combobox <select name="menu"> <option value="0" selected> select imp </option> <option value="1"> imp 1 </option> <option value="2"> imp 2 </option> <option value="3"> imp 3 </option> <option value=...

How do I get access to which .net forms combobox autocomplete suggestions are currently suggested in the drop down suggestion box

Hi, I've got some comboboxes which are populated with large collections of items. The user is only allowed to select an existing item, not add one. Currently I just disabled whatever weird property it was (I forgot already!) that allows editing of the combobox. However I figure it would be better if I allowed them to start typing, and l...

Pass data from parent to dialog box

I have a combobox in a dialog box form. I need to fill this combo with the List<> from parent form. How to do that as I cannot pass the List<> via dialog box constructor. frmChild frm = new frmChild(); frm.ShowDialog(); ...

WPF, property bound to dependent ComboBox always gives initial value

I have a ComboBox that needs to depend on the value of another ComboBox. This part already works, with the dependent ComboBox refreshing when a new value is chosen in the independent ComboBox: <!-- Independent --> <ComboBox Height="23" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="2" x:Name="cbo_product" VerticalAlignm...

multiple comboboxes in R using tcltk

I have been trying to define multiple combo boxes in R using the tcltk package but to no avail. I am using the below code. My inspiration was here, however I can't seem to just label them comboBox1, comboBox2, etc... so I decided to try and set their output values into a vector... but their output values don't make any sense to me... a...

User settings are not saved (Settings.Default.Save();)

In the properties of project I created a setting like this NumberOfUsers int User 10 The columns are Name, Type, Scope and Value. Then there is a ComboBox where user can set a 'NumberOfUsers'. This combo has SelectedIndexChanged event where I save the changes whenever the user change the value of combo. Here's the code: Settings.De...

Load default value for a comboBox extjs

how can i load a default value from my json store (remote) into a combobox , i've tried load the store before render the combo , and use setValue() i want my combo to display the first result in the store plz tell me the right way to do this and thanx ...

Silverlight Combobox Issue

I am trying to use a combobox inside a datagrid, but I am running into an issue. Here is the code: <sdk:DataGrid AutoGenerateColumns="False" Margin="6,71,6,0" Name="dgridDeptNums" Loaded="dgridDeptNums_Loaded" Height="226" VerticalAlignment="Top"> <sdk:DataGrid.Columns> <sdk:DataGridTemplateColumn Header="S...

Retrieve text from JComboBox

How to retrieve Text that is typed in JComboBox. This text need not be an existing item. ...

ComboBox drop down not dropping

I have a style for a ComboBox that I've been using for awhile, but I wanted to tweak the color of the drop down arrow. To do this, I just took the default template for the comboBox and pasted it into my style, and changed the arrow color fill. It looks perfect - until I hit the drop down! Nothing happens. If I cut the template from the ...

Combobox SelectedItem doesn't update when source changes

Hi all, I have a viewmodel which implement INotifyPropertyChanged. On this viewModel is a property called SubGroupingView. This property is bound to the selected item of a combo box. When i change the combo box, the source property is being updated fine, but when i change the source property or when the control is initialized, the combob...

How to programmatically set SelectedItem of a data-bound WPF ComboBox?

Question: Can anyone please provide a full code example that shows how one does programmatically change the SelectedItem of a data-bound WPF ComboBox without using MyComboBox.SelectedIndex? Code sample: Here is what I currently have. XAML: <Window x:Class="Wpf.ComboBoxDemo.MainWindow" xmlns="http://schemas.microsoft.com/winfx/...

Zend_Dojo_Data from SQL View (primary key not available, can it be done?)

Well, i'm trying to achieve something but i think it is not possible. Here's where i am. SQL Table T with columns colID , colA, colB. colID is the primary key I needed to retrieve all the values specified in colA "unioned" with colB, so I created a view CREATE OR REPLACE VIEW vw_MyView (col_Common) AS (SELECT col_A AS col_Common FROM ...

GWT / Mosaic - Use ComboBox

Hi everybody, I'm using a the combobox of the Mosaic library. I'd like to use that widget in order to customize the arrow part of the combobox. This is working well. But the combobox is placed in a scrollpanel. When i click on my combobox, it opens a dropdownpanel. If i start scrolling, the dropdownpanel don't move with the combobox wi...

WPF - Combobox SelectedItem not getting set?

I have a ComboBox that has its ItemsSource bound to a static List<CustomSettings> of options. The ComboBox is part of a form which is bound to a CustomObject class, and one of the properties on that class is a CustomSettingProperty. I would like to bind the SelectedItem of the ComboBox to the property specified in the CustomObject, how...