listbox

Dual listbox - how to move items between two list-boxes? [closed]

倖福魔咒の 提交于 2019-12-23 04:37:21
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . Do you know any jquery plugin or something to implement dual list-boxes? I searched and found this project http://kgaddy.com/jqueryMoverBoxes/ but the it is very simple. 回答1: Have a look at http://www

Drag and Drop ListBoxItems generically

喜你入骨 提交于 2019-12-23 04:33:08
问题 I want to implement a drag and drop on multiple listboxes that are data bound - using the MVVM pattern. I am not trying to drag and drop between listboxes but rather want the user to be able to drag/drop listboxitems in each listbox so they can rearrange the sort order. I found this post on SO which was VERY helpful: WPF C#: Rearrange items in listbox via drag and drop I wanted to try and make the methods more "generic" so that it would work on any listbox that is binding to different types

How to dynamically add listheaders and listcells in ZK

淺唱寂寞╮ 提交于 2019-12-23 04:26:11
问题 I am totally new in ZK. I need to create N listheaders and N listcells in my zul file. But I do not know how to do it from my java controller and I am not using MVVM. The problem would be something like: @Wire private Window idWindow; private Listheader header; private Listcell item1; @Override public void onCreate(Event event) { header.setLabel("laaaa");// It would set just one header but I can have many (N headers) and same for items } <zk> <window id="idWindow" title="nameWindow" apply=

gtk-listbox -contents shown in middle of horizontal line, listbox does not fit window size

旧城冷巷雨未停 提交于 2019-12-23 04:13:42
问题 I wrote a code for listbox in gtk problems 1. the contents of listbox are shown in middle of horizontal line. I want it to be left aligned. 2. the listbox does not fit the window size 3.the list box is within a notebook tab. I want when the item in the listbox is selected some processing to be done(some function called), the current tab display is hidden and new tab is displayed with the results and a back button. When Back button is pressed it does 2 cases for 2 tabs in 1 tab- it just shows

Search and remove item from listbox

萝らか妹 提交于 2019-12-23 03:59:06
问题 Is there a way to remove an item from a listbox based on a string? I have been playing around for a few minutes and here is what i have so far but its not working foreach(string file in LB_upload.Items) { ftp.Upload(file); int x = LB_upload.Items.IndexOf(file); LB_upload.Items.RemoveAt(x); } I could just loop through each item but I wanted to do something a little more elegant 回答1: while(LB_upload.Items.Count > 0) { ftp.Upload(LB_upload.Items[0].ToString()); LB_upload.Items.RemoveAt(0); } 回答2

Validating a ListBoxItem rather than a ListBox

主宰稳场 提交于 2019-12-23 03:18:50
问题 I have a ListBox bound to a list of objects that implement IDataErrorInfo. I have set the ValidatesOnDataErrors property to True on my ListBox. If I select an invalid item, a red border appears around my ListBox. How can I modify my ItemContainerStyle such that the red border appears arround the selected item rather than the actual ListBox? 回答1: You can set ValidatesOnDataErrors in the ListBox's ItemTemplate directly, on the Binding which binds the bound item's property to the control that

How to disallow the selection of an interactive ListBox item?

元气小坏坏 提交于 2019-12-23 02:48:13
问题 Some of the items in my ListBox use a template that contains a button and a TextBox. How can I make it such that it is impossible to select these items from the list, but still possible to interract with the button? EDIT: I still need to be able to select other items in this list, just not ones with this template. 回答1: We can use a attached property to the ListBoxItem (after I implemented I found someone who had done almost the same) : public class ListBoxItemEx { public static bool

C#: How to get the index of the selected item(and the text) in ListBox

旧时模样 提交于 2019-12-23 02:44:23
问题 I have a listbox (detailed view). How do I get the index of the selected item? I also eventually want to get the text at the index, but that should be easy. 回答1: ListBox.SelectedItem Property: Gets or sets the currently selected item in the ListBox. Or, naturally, ListBox.SelectedItems Propery: Gets a collection containing the currently selected items in the ListBox. ... Remarks For a multiple-selection ListBox, this property returns a collection containing all items that are selected in the

checked list box

自作多情 提交于 2019-12-23 02:41:02
问题 I am new to Access and i am in the process of creating a database for some of our users. I have designed a form where the user name, first and last name etc are inputted. Some of these users work for more than one department which means I need some type of listbox control that allows them to select more than one department when they enter their contact info. In VB Studios 2005, this control is called a CHECKED LISTBOX. I have looked everywhere in access but cant seem to find it or anything

Resize WPF ListBox selection box

自作多情 提交于 2019-12-23 02:36:12
问题 For a project I have implemented a small IntelliSense like control which is nothing than a ListBox . Its DataTemplate consist of a StackPanel holding one Image and one TextBlock . Nothing else. As you can see in the first screenshot of my control, the selection box of the ListBox selects the whole item (which usually is exactly what one would expect): However my "stolen" icons from VS11 are low-quality so I wanted to adjust the selection like Visual Studio does: You can see that only the text