Hello All,
I am writing a page that allows users to search a parts table, select quantities and a listbox is to be populated with gridview values. Here's a snippet of my aspx page:
<asp:ListBox runat="server" ID="lbItems" Width="155px">
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:List...
Greetings,
in my asp.net mvc application I have a listbox rendered as follows:
<%= Html.ListBox("localization", (Model as SeekWeb.Models.CreateMessageViewModel).Localizations.AsEnumerable())%>
is there any way to have checkbox for each listbox item? if checkbox is checked then the appropriate listbox item is selected.
...
What's the simplest way to bind a Listbox to a List of objects?
...
I have seemingly simple problem in Winforms.
I want to implement a collection that can be used as a DataSource for a listbox. I intend to use it for simple strings. Like so:
MyBindingCollection<string> collection = new MyBindingCollection<string>();
listbox.DataSource = collection;
I've read that all I need to implement is IList inte...
Hello,
I have a form that (amongst other things) contains 2 multi-select listboxes. Basically you can add items to the one on the right from the full list of items on the left using some add/remove buttons.
The problem is that I cannot see a way of picking up the contents of the listbox when posting back to the controller.
I have foll...
I have a listbox which has all the names for a list of "Gesture" objects I have.
I want to make it so if I double click on a ListBox item I can then do something with its associated Gesture instance. What is the best way in C# to associate a ListBox item with an instance of a class of mine?
I'm using WPF.
...
I want to clean a list box by checking it against two other list boxes.
Listbox1 would have the big list of items
Listbox2 would have words I want removed from listbox1
Listbox3 would have mandatory words that have to exist for it to remain in listbox1
Below is the code I've got so far for this, it's VERY slow with large lists.
//...
I am creating a form in excel (not a userform) and I am populating the listbox using cells. However, these cells are sometimes A1:10 and sometimes they are A1:A4. Is there a way to dynamically change what is shown in the listbox?
Right now, when I use A1:10 and there are only 4 cells populated, I get the list of 4 populated cells follow...
I have a ListBox that contains a textbox and a combobox in its datatemplate:
<ListBox Height="147" Margin="158,29,170,0" Name="PitcherListBox" VerticalAlignment="Top" ItemsSource="{Binding SomeCollectionOfObjects}" Background="Black">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Hori...
I am doing a simple application for touch screen devices, and I would like to implement today's fashion: kinetic scrolling. Is it possible to do, and if yes, how?
PS:
Kinetic scrolling: A scrolling mechanism where you don't use a scrollbar to scroll the content, but you touch the list itself, and pull and push it. The "physics engine" t...
I have a scrollview containing a ListBox. I would like the scrollview to scroll all the way to the bottom by default when the view has been loaded! This because the most recent element is always the last element in the ListBox.
Is there an easy way to achieve this behavior?
Thanks
...
Somebody know the VListBox?
It is fast to load item to the listbox.
But I can't get the SelectIndexChanged Event be triggered by set SelectIndex.
Somebody know how to trigger that event by winapi or something else?
VlistBox source code is in the page above.
...
WPF Experts -
I am trying to add buttons below my custom listbox and also have the scroll bar go to the bottom of the control. Only the items should move and not the buttons. I was hoping for some guidance on the best way to achieve this. I was thinking the ItemsPanelTemplate needed to be modified but was not certain.
Thanks
My ...
Instead of adding each item one by one to the ListBox destinationList from the string array m_List like this:
foreach (object name in m_List)
{
destinationList.Items.Add((string)name);
}
Is there any better way I can do it?
I don't want to bind the data to the destinationList since I want to delete some entries from the ListBox l...
Hello all,
I am getting a large amount of space under my custom listbox if I add an item with multiple lines of text. What can I do to solve this?
My code
<!-- List Item Hover -->
<LinearGradientBrush x:Key="MouseOverFocusStyle" StartPoint="0,0" EndPoint="0,1">
...
Hi,
I have a listbox inside another list box, in inner list box listboxitems height may grow or shrink. My problem is that when the inner items shrink the outer list box doesn't re-render its height. Thus - stays with the previous height before the inner list shrinked.
I have tried so many things here, among Invalidate of all types, s...
I have a list box which is populated using a dictioanry. When I iterate throught the selected items using the following code, it always show only the first items as selected - even if the first item is not selected.
Have you ever encountered this scenario?
Could you please help on this?
This problem occurs when I use dictionary for bi...
I'm brand new to Windows Phone 7 development, and almost as equally new to Silverlight. I have a ListBox with a DataTemplate, StackPanel, and TextBlocks like so:
<ListBox Height="355" HorizontalAlignment="Left" Margin="6,291,0,0" Name="detailsList" VerticalAlignment="Top" Width="474" Background="#36FFFFFF">
<ListBox.ItemTem...
how to get the items in listbox one by one
e.g : in my listbox i have items (roll no's)
s1
s2
s3
s4
s5
etc...
how to get the items on by one
...
Hi,
i have a problem with this code:
public partial class KnihovnyForm : Form
{
DatabazeEntities db;
public KnihovnyForm()
{
InitializeComponent();
db = new DatabazeEntities();
knihovnyListBox.DataSource = db.Knihovny;
knihovnyListBox.DisplayMember = "Nazev";
}
protected override v...