Questions tagged [combobox]

1

votes
1

answer
33

Views

How set text color of combobox?

I'm trying to set the text color of combobox. My code, which I tried comboList.setStyle('-fx-text-fill: blue');
Martin
1

votes
3

answer
2.2k

Views

How to show only a substring of an item in a ComboBox in C#

I have some Company names as Items in a ComboBox like this: 123 SomeCompany Always a number between 100 and 999 plus the company name. Now if the user selects an Item I want the TextBox to only show the number, not the company name. he company name should only be visible when he drops down the Comb...
asdasdad
1

votes
1

answer
3.6k

Views

How do I achieve multi selection in a combobox in WPF

I am new to WPF, I am looking for a dropdown with checkbox to select multiple values. The source to the drop down would be from a list (list).
user1721890
0

votes
0

answer
6

Views

How to change error color of Vuetify component?

I'm trying to adjust the color of my error messages from my Combobox. I tried to overwrite the style I saw getting applied, but it just isn't sticking. I saw the normal way to apply styles in Vuetify is to add [color]--text to a component, but what would I need to do to set just the error style? .er...
Get Otter Here
1

votes
2

answer
75

Views

Why is the combobox doubling its items when being created?

I'm creating a combobox programmatically as follows: var cbo = new ComboBox(); cbo.HandleCreated += (s, e) => { cbo.DataSource = mylist; }; When I do the above, the combobox displays double the items contained in the list. However, when I do the following, the combobox displays the correct number of...
Ivan-Mark Debono
0

votes
0

answer
8

Views

Cascading combo boxes in VB.Net with Datatables using Designer

I found this tutorial and am trying to make it fit my needs using the designer. I could design the data tables using the designer in VB.net but when I try to execute, I am getting an error on this line Dim dv As DataView = combo2.DataSource https://www.tek-tips.com/viewthread.cfm?qid=1534892 Private...
Shan
1

votes
0

answer
313

Views

Javafx : ComboBoxTableCell - how to select a value in one click?

I have a TableView with a ComboBoxTableCell, when using the default implementation the user have to click three times to select a value from of the ComboBox's list. I want when the user clicks on the cell to show the combo box list. I based my solution on this one: JavaFX editable ComboBox in a tab...
joepol
1

votes
1

answer
254

Views

How to get item size in Vaadin8 combobox?

I'm trying to show a pop-up if there is no any item in Vaadin8 combobox. But there is no getItems() or size() methods. here is my code, if branch size = 0 I want to push a notification to user. cbxBranch = new ComboBox(); cbxBranch.setPlaceholder('Select a branch'); cbxBranch.setItemCaptionGenerator...
stephan
1

votes
2

answer
278

Views

Excel VBA Changing Combobox list from static range to dynamic

This should be pretty simple, but I am struggling. Right now, this code works: cboCategoryEdit1.List = Sheets(2).Range('A2:A40').Value I am trying to 'clean up' my project by changing how the combobox is populated. I'd like it to be a combobox with a range that only takes populated cells. Meaning...
jpend314
1

votes
1

answer
110

Views

How to select ComboBoxItem in WPF (DevExpress framework) using UIAutomation?

I've tried to get the patterns of all automation elements in that I can use ExpandCollapsePattern but i can't use the SelectionItemPattern to invoke SelectItemPattern. Exception: Exception: 'Unsupported Pattern' Here is my code: foreach (AutomationElement a in automationlist) { if (a.Current.Automat...
VVK
1

votes
0

answer
36

Views

trigger Jquery in dynamic combobox

I have a .net form which opens a webpage in webbrowser and selects 2 Combobox where the first Combobox value changes the value of the second Combobox values. like if i select 'Assigned' in first Combobox , the second Combobox will have list of assigned reason, and similarly if i select 'Pending' in...
Ashok Kumar
1

votes
1

answer
75

Views

ComboBox missing items

I'm facing a weird problem with ComboBox. I would like to represent key combinations in a ComboBox, where every key is on a Canvas. Binding works just fine, and after initialization it looks ok, but when I click on it and expand the dropdown list the current selected item will be empty and if I cha...
Dávid Kalmár
1

votes
0

answer
32

Views

Nested data, associations, form, grid, combobox and update data?

All is in the title ! I am using a nested data (json) to populate a form and some grids : My data : AqiConfig : root Id Label Type : unique Id Label Pollutants : hasMany Id Optional Tag physical The fiddle If you click in a row of the first grid (aqiGrid) then the following components are filled....
mpe
1

votes
1

answer
34

Views

formatting combobox elements

In my database serial-numbers are stored as an Integer. I want to represent these numbers in a Access-frontend combobox with a different formation: '121212345' --> '12.12.12345' When a number is chosen it should be stored as an Integer again. I already tried to populate the combobox by myself with s...
daly
1

votes
1

answer
398

Views

How to use combobox value to vlookup value for another text value in a userform and have it update automatically in the userform

I'm not seeing what is not working on this one. I want after the user selects SelectAgency a userform combobox for the Contact1 populate from reference sheet with a named range in column T column s on ref sheet = Agency name column t on ref sheet = Contact1. name ACIN = column t range for contact...
Casey M
1

votes
1

answer
32

Views

c# wpf combobox column in child datagrid

I am working on a WPF application with two DataGrids—one for TimeCard objects and a second for time card line (“TcLine”) objects. There is a one-to-many relationship between TimeCards and TcLines. The TimeCard datagrid is set up with a SelectionChanged event which populates the child datagrid...
TJLaser Shepard
1

votes
1

answer
62

Views

C# Form DropDownStyle different when called as class library from vbscript

I have a windows form, that has a combo box. The combo box has property DropDownStyle. I have set its value to DropDownList. i.e. DropDownStyle: DropDownList. It works fine when the form is loaded as a windows application. But when I call it as class library from vbscript, it shows the the form with...
jahanzaib91
1

votes
0

answer
23

Views

java, How can I show a list when choose a item in the combobox(GUI)?

I have a doubly linkedlist that contains 'Drivers','Tickets','Buses','Passengers' info and I want to print if I choose a item in the combobox for example when I pick driverlist, use my print method to print the information, if its any way to show each list by a chooser, please tell me, thanks. priva...
mehradds
1

votes
0

answer
40

Views

How to filter the sub-lists in webix

Here our requirement is, if we search vf(value field) values in combo, means only searching value should be shown in combo list remaining should be hide. for example in synonyms 3 values are present['hr','hrs','hour'], if we search hr means, only hr value should be shown, remaining two values should...
Deepak E
1

votes
1

answer
117

Views

How insert items to tableview with bind to combobox?

when select from combobox item the tableview refresh ok. ObservableList species = FXCollections.observableArrayList(); //the tableview items depends on genderComboBox selected item livingBeingTableView.itemsProperty().bind(Bindings.createObjectBinding(() -> { Gender gender = genderComboBox.getValue(...
Alberto Amat Alvarez
1

votes
1

answer
56

Views

Concat more than one properties in ComboBox

I want to concat some properties to show in a ComboBox. I am doing this as the following: This is what I get: Why is the selected item not shown properly? Is the DisplayMemberPath not defined by the ItemTemplate?
Parisa
1

votes
1

answer
249

Views

Vaadin combobox separator

I'm currently developing a Vaadin app, and I've arrived to the need of a ComboBox with some separators between items. I've been looking arround and it seems currently there is no way to achieve this. Being more specific: What do I mean with separator? A separator is an item in the ComboBox that, pre...
Shirkam
1

votes
0

answer
292

Views

Check if combobox contains value of list vb.net

I have list with duplicates values Dim lstPlayerValidate As New List(Of Integer) Dim duplicates = lstPlayerValidate.Where(Function(x) lstPlayerValidate.Where(Function(y) x = y).Count() > 1).Distinct().ToList Now I want check if comboxes contains any value from this list. I do it so: If cmbPlayer.I...
Emma W.
1

votes
1

answer
83

Views

C#, Linq, Entity Framework Combobox

I am currently having an issue I can't seem to resolve. I've created a method, where I pass in a combobox object, build a Linq Query and bind the ItemsSource to the result of the query. I have done this in VB.Net very successfully. In C# though When I debug the application and pulldown the combobox...
user1756895
1

votes
0

answer
248

Views

MS Excel VBA userform: conditional combobox list based on multiple tables from MS Access

I am working on Excel application with connection to MS Access database. My Excel Workbook contains GUI with multiple userforms to enter and exchange the data between different tables in MS Access database. In one of those userforms I have couple of comboboxes which are filled out based on the val...
Conceptic
1

votes
0

answer
105

Views

Click event in combobox inside Rowexpander Not Working

I'm using a Nested grid with Row Expander plugin. everything is working fine but inside the rowexpander a combo box, which resides inside the 2nd grid, not dropping down when mouse click event is fired. The combo working properly when the Down/Up arrow keys. This is happening only when I use Chrome/...
Prithwin Kumar
1

votes
0

answer
79

Views

Autocomplete combo box perfomance issue

I have a autocomplete combo box with 10,000 records in database. While i am trying to type APD it will struck.. even application is not working. and showing error like below Local host not responding due to a long-running script. if i type 9999 or 243 or 2345 then it is coming without any issue.. Pl...
Harry
1

votes
1

answer
171

Views

MS Access - Building a combobox that returns multiple values based on previous combobox selection

I have two tables that share the the study protocol titles (string). In the one table 'Study Events', I store reimbursement information related to each study protocol, but what concerns us are the two columns, 'Protocol' and 'EventDefinition'. In this table, I may define multiple 'events' for a sing...
Custergrant
1

votes
1

answer
194

Views

WPF ComboBox closed but selected scrolling changes item

So I have a couple of lists inside a WPF ComboBox inside a datagrid (DataGridComboBoxColumn and DataGridTemplateColumn's with ComboBox). However when I change the selected item for a ComboBox, keep my mouse hovering over the list and then scroll, the selected Item changes. Because I have this inside...
Ben
1

votes
1

answer
70

Views

WPF ComboBox ItemTemplateSelector.Selecttemplate is never called

Based on this answer I tried to use the following code to achieve a ComboBox with different templates depending on whether or not the drop down is open. The ComboBox definition looks like this: and the ComboBoxItemTemplateSelector looks like this: public class ComboBoxItemTemplateSelector : DataTemp...
1

votes
0

answer
24

Views

How to add a list of object in combobox C# WPF

I wanna add to a combobox a list of object created in a form. But for exemple, if I create 7 object, it will creates 7 object with the same name (the latest name created) in the combobox. I don't know if it was clear but the code for add to the combobox is here : private void TabSupp_Famille(object...
Aurélien
1

votes
1

answer
2k

Views

ms access form: combobox to multiselect dropdown menu

I have an ms access db which was made a few years ago for my company. I am trying to change a form entry from a combobox to a multi-select combo box (Check box). Currently, only one value can be saved and I would like a number of values to be able to be saved. The data for the combobox is sourced f...
Alex
1

votes
2

answer
339

Views

UnHook Scroll Wheel from Userform

I found the below code online (can't remember where), that allows the mouse scroll wheel to function in ComboBoxes of my Userform via API calls; the code works perfectly for that purpose. The problem I am having is what they call 'Unhooking' the mouse, or returning the mouse wheel to regular default...
wlfente
0

votes
1

answer
802

Views

Why is ComboBox SelectedIndexChanged being called before form load?

why Private Sub combobox_SelectedIndexChanged(sender As Object, e As EventArgs) Handles combobox.SelectedIndexChanged called before form appears? In my understanding, this function should be called ONLY when user change the selected index of mycombobox? Am I wrong? How to stop it from running automa...
BAE
1

votes
1

answer
329

Views

DevExpress Cascading Combobox GridView DataBind

I have a GridView which contains a TextField of BenefitName (string) and a ValueField of BenefitInfoKeySK (int). Originally I directly bound a datasource to the combobox and had distinct TextField and ValueField values. (Code Sample 2) I updated my code to create 'cascading' comboboxes and the TextF...
gruff
1

votes
0

answer
51

Views

Part of Text cut(hidden) in JFace ComboBoxCellEditor

I have an issue with jface ComboBoxCellEditor that part of the text is cut like the image below. I'm using these plugins, org.eclipse.swt_3.106.1.v20170926-0519.jar org.eclipse.swt.win32.win32.x86_64_3.106.1.v20170926-0519.jar org.eclipse.jface_3.13.1.v20170810-0135.jar This issue only happens on Wi...
Daniel
1

votes
1

answer
151

Views

set combo box selected item value to null through data trigger

I am trying to set Combobox Selected Item property to null through Control Template I've added Checkbox so I can use datatrigger and set SelectedItem to null when Checkbox isChecked is true. Basically Im trying to add clear filter checkbox that will show up when SelectedItem has some value, and upon...
User
1

votes
3

answer
56

Views

C# show MessageBox based on Combobox SelectedText

How do I show a messagebox based on the various SelectedText in the Combobox? It currently just returns a NULL value when running. I need to show the specific messagebox for each Combobox Text as once I can do this then depending on the SelectedText different SQL Connections will be used and Querie...
WHoward
1

votes
0

answer
40

Views

populating multiple comboboxes on tabcontrol in vb.net

I am populating multiple Combo Boxes on multiple pages of Tabcontrol, while this approach works fine for combo boxes on the form, it doesn't work for populating combo boxes on TabControl For Each tab_page As Control In Me.TabControl1.TabPages For Each temp_ctrl As Control In tab_page.Controls If tem...
Gauiver
1

votes
1

answer
104

Views

local virtualization ComboBox kendo

I want use virtualization on local data with kendo object ComboBox. I have tried in various ways but only the current page is displayed (First 40 element) I used a code structure as much as possible similar to kendo virtualization tutorial. I also tried to write them used the data field in Dasourc...

View additional questions