combobox

Telerik AJAX radComboBox. Getting SelectedValue from second comboBox

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 00:22:03
问题 I’m trying to populate one Telerik AJAX radComboBox from the results of another i.e. comboBox1 – autocompletes and user selects an item comboBox2 – user selects. Loads on demand. Uses the selected value from comboBox1 to populate itself. The problem is that I can’t get the selected value of combobox1 Markup <telerik:RadComboBox ID="comboBox1" runat="server" EnableLoadOnDemand="True" MarkFirstMatch="False" onitemsrequested="comboBox1_ItemsRequested" > </telerik:RadComboBox> <telerik

DataGrid ComboBox Binding Issue with Selected or New Item

我们两清 提交于 2019-12-24 00:08:59
问题 I am having issue with retaining selected item in a DataGridTemplate column ComboBox. I have the DataTemplate editable combobox column as the first column in the datagrid and next to it, I have a text column. The DataGrid is populated with data read from SQL stored procedure. Everything works fine, except when I select an item in the combobox and move to the text field and start typing in it, the Combo selection blanks out. It blanks out both for a new item or existing item. Oddly, this

How do I stop a clicked combo box from clearing its value?

守給你的承諾、 提交于 2019-12-23 23:19:59
问题 I'm trying to edit a combobox value. But what happens is when I click a grid cell the old value disappears I want to keep a the and also avoid the user to select the values form the combo box itself and not values other than those in the drop down How can i achieve these two things. { text: 'Food Items', xtype: 'gridcolumn', dataIndex: 'food_lister', flex: 1, renderer: function (value) { console.log() if (Ext.isNumber(value)) { var store = this.getEditor().getStore(); return store.findRecord(

Display name from foreign Key constraint within a combobox

喜夏-厌秋 提交于 2019-12-23 21:15:34
问题 I have three tables. Employee, ClientEmp and Client. ClientEmp has the ForeignKey of both Employee (EmployeeID) and Client(ClientID). So far, I am able to save changes to ClientEmp in my database (using EF ) based on the selected Client. But I have to type in the EmployeeID ForeignKey manually in a textbox to be able to match the data for it to save. Obviously, this isn't very user friendly if a user has no idea what the EmployeeID FK is enter into the textbox either. Therefore, is there a

Accept value that is not in the list - bootstrap combobox

只愿长相守 提交于 2019-12-23 20:18:11
问题 is there a way that the user can input other values in bootstrap combobox? from this site: https://github.com/danielfarrell/bootstrap-combobox/ i tried to remove the code below from the javascript and the user can enter any value but when i try to save it in the database the combobox value is not saving. if (!this.selected && val !== '' ) { this.$element.val(''); this.$source.val('').trigger('change'); this.$target.val('').trigger('change'); } Thanks! 回答1: I'm using this workaround: bootstrap

JavaFX ComboBox CSS style

给你一囗甜甜゛ 提交于 2019-12-23 20:15:39
问题 I am building a small application with JavaFX + FXML and I'm trying to implement some simple CSS to have a specific style. I have an issue with the Combobox element. Indeed by default its color is grey: And I would like to have it white (or transparent), and keep the borders, to match the same style as the Text Field. So I tried to set the background color to transparent but there is a side effect: The borders become transparent too! Here is the CSS i have added: .root { -fx-font-size: 11pt;

How to allow selecting a NULL value in a TDBLookupComboBox?

你说的曾经没有我的故事 提交于 2019-12-23 19:19:28
问题 I have a TDBLookupComboBox showing a TStringField of kind fkLookup , which allows Null values (from a nullable Integer database column). The dropdown list displays the items from the assigned LookupDataSet , which comes from a joined table. If the field is Null , none of the list items are displayed, the combobox is empty. If the field has a value, the correct description is shown. I can reset it to Null by pressing the assigned NullValueKey . That's all ok, but the users prefer using the

WPF: cannot access ComboBox's TextBox with FindName

做~自己de王妃 提交于 2019-12-23 19:14:54
问题 I saw that I can access the templated parts of a ComboBox (the TextBox , PopUp and Button ) via the FindName method. The TextBox should be accessible by using cb.FindName("PART_EditableTextBox") , however, this always returns null for me. As per melya's suggestion, I have tried using cb.Template.FindName("PART_EditableTextBox", cb); instead -- this works on a simple test app, but not my own. The difference, perhaps, is that I'm trying to do this before the ComboBox is loaded or initialised (I

Slow scrolling in ComboBox

余生长醉 提交于 2019-12-23 18:17:46
问题 I have a problem where scrolling in both a toolStripComboBox and regular ComboBox is really slow. This happens both using the arrowkeys and the mouse scrollwheel. However, if I use the scrollbar it behaves as expected. Here's the toolstrip combobox: // // toolStripComboBoxDeild // this.toolStripComboBoxDeild.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.toolStripComboBoxDeild.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this

WPF MVVM ComboBox SelectedValue is cleared when navigating away

余生颓废 提交于 2019-12-23 16:31:06
问题 I've had an issue with the WPF ComboBox that I was eventually able to solve. The reason of the issue however is not clear. The issue occurred when using a ComboBox where the ItemsSource was referencing a different DataContext than the SelectedValue . When doing this and navigating away, the SelectedValue property was set to null . Since some properties contain logic when changing (when field A changes, also change field B), some logic was executed incorrectly. <ComboBox x:Name="Sector"