Forum  General Visual ...  How do I...?  Combo Box With Intuitive DropDown
Previous Previous
 
Next Next
New Post 1/10/2012 5:58 PM
Unresolved
  derekmhart@yahoo.com
717 posts
1st Level Poster


Combo Box With Intuitive DropDown 
Modified By derekmhart@yahoo.com  on 1/11/2012 1:46:57 AM)

I want to use a VWG combo box, but have it populate with a list from a database. That is easy, and I believe when I type a few characters it narrows the list. But I wish to have it be more intuitive like in Windows, where if I arrow down the list and hit the delete key, the item would disappear and I could send this information to the database to remove the item. Is there a different VWG control to use for this, and/or a custom combo box available? It would be great if when hitting delete the combo box would not have to refresh. Do I have to get into Ajax here?

Better yet, this really is about adding multiple email addresses to a text field (or combo box). So ideally, it would work like Microsoft Outlook. With Outlook, you start typing an email address and it pops up with a list of matches. Then you can click on the email address, and it add a semicolon. Then you can start typing again to get the next one, and the combo box shows up, properly aligned to where the user is typing. And a nice "x" shows up next to each email address to remove it from the list (ultimately, from the database). Not sure how to duplicate. If I have a custom combo box drop down a form, I could have a form showing the email addresses, possibly in user controls with an "x" button to remove.

Also, it looks like a custom solution might partially solve:
http://visualwebgui.com/Developers/KB/tabid/654/article/handling_keypress_events_on_a_vwg_textbox_using_a_client_side_timer/Default.aspx
Has this solution been integrated more into the latest Visual Web GUI build?
By the way, the above demo does not seem to work. I don't know if it needs to use older Gizmox dlls, but testing the specific textbox that should be firing WHILE the user is typing does not work. Ryan should be contacted about this one.

A little help on the best way to create all this?

 
New Post 1/11/2012 11:33 AM
  palli
11824 posts
1st Level Poster




Re: Combo Box With Intuitive DropDown 

Hi Derek,

The custom solution you referenced is a control created in an earlier version of Visual WebGui by Ryan and Jeremiah, two of our community members. I am not surprized that it will need some upgrade to work on version 6.4, and it may even need a redesign, I just haven't evaluated it in quite some time.

To get you started somewhere, you may want to look into the option of using a Custom Drawn ComboBox, sometimes called Owner Drawn ComboBox. This is just a standard ComboBox, where you supply (program) the dropdown which will then be shown instead of the standard dropdown.

We have a few samples on this linked from the ComboBox article here. Basically, then in place of the standard dropdown, you display a Form and in that form you can have whatever contents you need/like. One of the samples uses a multicolumn ListView etc. etc.

Hope this gets you started,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 1/11/2012 11:40 AM
  derekmhart@yahoo.com
717 posts
1st Level Poster


Re: Combo Box With Intuitive DropDown 
Thanx Palli, Do I need the latest version of vwg to do this? I did not see a property on the combo box for IsCustom, or something close to that. Is it hidden, or should I see on the properties for the combo box? What I am interested in is how to narrow the results as a user is typing, like every second or so, like Ryan's demo showed. Possible in an easier way?
 
New Post 1/11/2012 12:06 PM
  palli
11824 posts
1st Level Poster




Re: Combo Box With Intuitive DropDown 

Hi Derek,

You are welcome.

You don't need version 6.4 to make this work. The multicolumn ListView dropdown was created against early version 6.3.

You should download and study one of the samples. You will need to create an inherited ComboBox and override the IsCustomDropDown property and have it return true.

The contents of your custom dropown form can be whatever you want it to be, even some helper controls and a listview presenting the narrowed down search values, or whatever you choose.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 1/11/2012 12:58 PM
  derekmhart@yahoo.com
717 posts
1st Level Poster


Re: Combo Box With Intuitive DropDown 
One of the main things I need is the ability for the user to type in search criteria, and every second or so have it refreshing the list. Just like searching in google, but not with postbacks every keystroke. Is there an approach u know?
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  Combo Box With Intuitive DropDown
Assessment Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS