Coder Social home page Coder Social logo

dropdowncontrols's Introduction

DropDownControls

Drop-Down Controls for .NET - https://www.brad-smith.info/blog/projects/dropdown-controls

Includes:

  • GroupedComboBox - A ComboBox with grouping (group headings only, depth 0-1)
  • ComboTreeBox - A ComboBox with a TreeView drop-down (infinite depth, supports node styles, images and checkboxes)
  • Custom DataGridView column types - Allows GroupedComboBox and ComboTreeBox to be hosted in the DataGridView control
  • DropDownSearchBox - A ComboBox with inline searching (search within the local list items or an external data source)

Requirements:

  • .NET Framework 4.8 or .NET 6.0

dropdowncontrols's People

Contributors

arabasso avatar bradsmith1985 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dropdowncontrols's Issues

Tooltips lingering after dropdown closed

While playing around with the demo app I found that sometimes the tooltips from the ComboTreeBox still remain visible or even new ones appearing after the dropdown has been closed.

All of this on Windows 10 B1903.

I've been able to reproduce the behavior mostly when opening the ComboTreeBox (Images) and hovering over one of the tree nodes, say Hydrogen. When the tooltip has appeared, the current node cannot be selected (I guess the mouse click lands on the tooltip) unless I move the mouse.
Without clicking, the tooltip follows the mouse with a short delay, but when you click on a node while the tooltip still is at the old position, it will be repositioned (and stay visible) even though the dropdown has been closed meanwhile.

GroupedComboBox not grouping in VB

Hello.

I have added devmaestro1's project fork to a test project. I'm using VB .NET Framework 4.8. I can add the controls from the designer although the groups in the grouped combo box don't seem to be working. I've taken a look at the demo's and they're all in C# so I'm just a little unsure if something has gotten lost in translation. Thank you!

Dim groupedItems = New Object() {New With {.Group = "Group 1", .Value = 1, .Display = "Test", .ToolTip = "More info 1"},
    New With {.Group = "Group 1", .Value = 2, .Display = "Test 2", .ToolTip = "More info 2"},
    New With {.Group = "Group 2", .Value = 3, .Display = "Test 3", .ToolTip = "More info 3"}}

GroupedComboBox1.ValueMember = "Value"
GroupedComboBox1.DisplayMember = "Display"
GroupedComboBox1.GroupMember = "Group"

GroupedComboBox1.DataSource = New BindingSource(groupedItems, String.Empty)

Produces:

image

GroupedComboBox loses its DisplayMember property when changing Datasource

(Using WinForms and .NET Framework 4.8)

I have a form with a number of controls on it, one of which is a DataGridView whose DataSource is linked to a BindingSource. The other controls on the form (mainly textboxes) are bound to the properties of that data-bound item. The form is used essentially for other people to update database records.

However, the GroupedComboBox is used on the form for the user to update an associated item from a linked table. When a new record in the DataGridView is selected, some code runs when BindingSource.OnCurrentChanged is fired on that grid, to re-populate the GroupedComboBox so that it's relevant to the new data-bound item.

However, after assigning a new List / BindingList to GroupedComboBox.DataSource property, somehow the GroupedComboBox.DisplayMember property is then set to an empty string, to which when the framework calls .ToString() on paint, it displays the namespaced object name, rather than the property assigned to DisplayMember.

In debugging, I've added an event listener to GroupedComboBox.OnDataSourceChanged and tried to set the DisplayMember manually, but after stepping over the code, GroupedComboBox.DisplayMember is still an empty string.

GroupedComboBox.ValueMember and GroupedComboBox.GroupMember however are still assigned as from the Designer.

Not sure what's going on.

Drop-down selection cannot be made when tool-tip appears

Reproduce steps:

  1. When pulling down the drop-down tree, linger over the item so the tool-tip appears.
  2. Then, try to click the item, it won't select the item. This is because the tool-tip seems to be stealing the 'MouseClick' event.

Prevent group title selection

The control currently allows for the selection of a group title. It would be helpful if an option was added to prevent this.

1

2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.