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

[Solved] Values in multiple columns and rows

3 Answers 205 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Hilmar Bunjes
Top achievements
Rank 1
Hilmar Bunjes asked on 08 May 2008, 01:06 PM
Hi,
is there any way to display values in the combobox in multiple columns and rows? I want to show numbers to the user to choose from. There should be 3 or 4 numbers each row. In total the user can choose from about 30 - 40 numbers.

Example:
1 | 2 | 3 | 4
5 | 6 | 7 | 8
...


Thanks,
Hilmar

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 08 May 2008, 02:38 PM
Hi Hilmar Bunjes,

I suggest that you refer to the following RadComboBox example:

Multi-column combobox

Hope this is what you are looking for.

All the best,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Hilmar Bunjes
Top achievements
Rank 1
answered on 09 May 2008, 10:26 AM
Hi Nick,
thanks for your answer. Unfortunately it's not exactly what I'm looking for. In the example there is one entry per row (with multiple values shown in one line) and you cannot select a single value of a row but only the full row.

What I'm looking for is a display structure like this:

1 | 2 | 3 | 4
5 | 6 | 7 | 8
...

where you can choose single numbers (e.g. only number 3 or only number 5). If you hover above the number "4" this single numbered is marked and if you click only the number "4" is selected and not the whole row.

Edit:
Actually the RadColorPicker is close to what I'd like to have but instead of colors the user should choose numbers.

Best,
Hilmar


0
Nikolay
Telerik team
answered on 09 May 2008, 12:32 PM
Hi Hilmar Bunjes,

There is no such a built-in feature in the combobox.

You can, however, use the combobox' ItemTemplate and embed the proper control in the template. Then, you can hook either on a client or server event of that control and change the text of the combobox:

  • At the server side you will have to sue the Text property of the combobox object
  • At the client side you will have to use the set_text() method of the combobox client obejct


Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Hilmar Bunjes
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Hilmar Bunjes
Top achievements
Rank 1
Share this question
or