This is a migrated thread and some comments may be shown as answers.

emulate a listbox?

1 Answer 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mac
Top achievements
Rank 1
mac asked on 26 Sep 2008, 04:00 PM
hi. wondering if there are any ctrls here that might allow me to emulate an asp:listbox... ie, very basic text rows that can be moved through using native up/down buttons. I also need the ability to autopostback on selectedindexchanged. my flow is essentially.
  • dropdownlist of general items (postback)  >
  • Populate listbox with subcategories,
  •  focus listbox,
  • using asynchpostback trigger, lookup items in related datagrid.

i tried getting the combobox to open on load, but it really doesn't look very nice in an always open state. ie, covers other items and distracts. Wondering if perhaps using a menulist would be better. I need to reitterate that I must be able to move through the list with only using up/dn keys, and it must maintain the selectedindex.


cheers.
mac

1 Answer, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 06 Oct 2008, 06:46 PM
Mac-

At present, we don't have a control that directly meets these requirements. We've been considering adding a ListBox to our offering, though, so we may have a control perfectly tuned to this scenario in the future.

In the mean time, I think RadGrid or RadTreeview may work. Both support full ItemTemplates (so you can make the "nodes" look like whatever you need) and both support the keyboard (http://demos.telerik.com/aspnet/prometheus/TreeView/Examples/Functionality/Keyboard/DefaultCS.aspx). I wouldn't say either is "optimal" for what you're trying to do, but I'd give them a look and see if they work for you.

If you have any questions or need any help getting these controls to work, just let me know.

-Todd
Tags
General Discussions
Asked by
mac
Top achievements
Rank 1
Answers by
Todd Anglin
Top achievements
Rank 2
Share this question
or