Hi everyone,
I have followed the example of "RadComboBox Multiple Column" to display my items in multiple rows and columns which is working perfectly fine. The items are displayed in a horizontal ordering, so I would like to display it vertically instead. Thus, is it possible ?
Markup:
C#:
I have followed the example of "RadComboBox Multiple Column" to display my items in multiple rows and columns which is working perfectly fine. The items are displayed in a horizontal ordering, so I would like to display it vertically instead. Thus, is it possible ?
/* RadComboBox CSS*/
.multipleRowsColumns .rcbItem,
.multipleRowsColumns .rcbHovered
{
float
:
left
;
margin
:
0
1px
;
min-height
:
13px
;
overflow
:
hidden
;
padding
:
2px
19px
2px
6px
;
width
:
80px
;
}
Markup:
<
telerik:RadComboBox
ID
=
"cboxHour"
runat
=
"server"
Width
=
"40px"
DropDownCssClass
=
"multipleRowsColumns"
DropDownWidth
=
"200px"
>
<
HeaderTemplate
>
<
table
style
=
"width: 100%"
>
<
tr
>
<
td
align
=
"center"
>
<
b
>Select Hour</
b
>
</
td
>
</
tr
>
</
table
>
</
HeaderTemplate
>
</
telerik:RadComboBox
>
C#:
protected
new
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
int
[] hours = Enumerable.Range(0, 24).ToArray();
cboxHour.DataSource = hours;
cboxHour.DataBind();
}
}