Multiple columns in the dropdown

5 posts, 0 answers
  1. CS
    CS avatar
    16 posts
    Member since:
    Apr 2008

    Posted 26 Sep 2008 Link to this post

    Hello,

    I've seen from your First Look sample how you can use a custom ItemTemplate to display multiple "columns" of data in the dropdown for each item, but my question is this... is there a way to define column headings for those columns?  Ideally the column headings should not scroll.

    Thanks,
    Craig
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 29 Sep 2008 Link to this post

    Hi Craig,

    RadComboBox does not support this out of the box. You should modify the control template to add headings for the columns in the control. This is not very flexible, because you will have to provide different control template (with different headings) for each combo box instance that has different columns in its drop down. We are aware that multi-column combo box was very often requested feature of RadComboBox for ASP.NET and it is on our list for future development. However, at this I am unable to provide a specific date when we will have it.

    Greetings,
    Valeri Hristov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 16 Dec 2009 Link to this post

    I had the same request.  This is a MUST HAVE :)
    Thank you for your answer.

    A workaround is to simply do a UserControl implementing a button templated with an arrow
    and showing a GridView when clicked and just bind the content of the button to the selected item property of your choice

    will just need event for clicking the button and selecting a row in the grid.
    hope this helps.
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 17 Dec 2009 Link to this post

    Hi Marc,

    I would recommend using RadDropDownButton instead of RadComboBox - it provides the needed API for opening and closing, and you could put inside whatever control you like.

    Regards,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009
Back to Top
DevCraft banner