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

[Solved] True multi-column RadComboBox possible?

2 Answers 237 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 06 Jan 2008, 05:34 AM
Hello,


The Quickstart Tutorials claim that RadComboBox Prometheus supports multiple columns, though after working with the control for awhile I'm noticing that this doesn't seem to mean true "multiple columns of items", but only means "I can arrange my item's layout into any kind of markup I wish, such as tables, which is how all Template features work"; so to me it's a bit misleading, because I was hoping to be able to have multiple RadComboBoxItems rendered in multiple columns (so I could define, like a ListView, multiple columns with one full item rendered in each defined column, before moving on to the next row).

Am I wrong in assuming this isn't possible (without, say, making a custom object and inserting a grid as a single combobox item)?

2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 07 Jan 2008, 08:27 AM
Hi Daniel,

Multi-columns combobox can be achieved only by using templates. You can place a table or a grid control in the templates and thus achieve your goal. What exactly are you up to? I could probably suggest a working solution for you.

Regards,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Daniel
Top achievements
Rank 1
answered on 07 Jan 2008, 12:40 PM
Hi, Nick,


I was hoping to be able to databind to a collection of Photo objects and modify the Template so that I could bind those photos in columns as opposed to in a list. It's true that I could probably create a ListView or grid object in the template, and pass in the entire collection of photos, and then add one RadComboBoxItem which would get the job done, but was confused because the control is supposed to support "multi-column", when it actually only supports templates.

For example, ListView supports multi-column in that it provides both the itemPlaceholder and groupPlaceholder, with ItemTemplate and GroupTemplate, which allows you to define multiple column layouts for a single bound object (you can define a grid in template markup). With RadComboBox, I can do as I mentioned above and fake it with a multi-column object as a single item, but I can't simply pass in a collection of objects and have it ItemBind across columns. I can only display properties of the single object in multiple columns by defining table markup and putting, say, photo.Caption in column 1 and photo.Size in column 2, which is not the result I'm looking for and not multi-column support. I was hoping I was missing something and wanted to check if it was possible another way.

Tags
ComboBox
Asked by
Daniel
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or