emulate a listbox?

2 posts, 0 answers
  1. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 26 Sep 2008 Link to this post

    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

  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 06 Oct 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top