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

Multirow Multicolumn combobox

2 Answers 99 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Hamid
Top achievements
Rank 1
Hamid asked on 19 Mar 2013, 09:24 PM
Hi
Need some guidance in Multirow Multicolumn combobox as the second combobox in the demo 
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultvb.aspx 

 (Image attached - want it without pictures though) to select individual cells. Studied the example but could not figure out how it was made, there is not much in the demo files about RadCombobox2

Any help is much appreciated.
thanks
Hamid

2 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 22 Mar 2013, 03:03 PM
Hello Hamid,

In order to implement the multi-row and multi-column RadComboBox, I would suggest adding the following markup and  css styles as follows:
//markup code
<telerik:RadComboBox ID="RadComboBox1" runat="server" Height="140px" Width="450px"
       DropDownCssClass="multipleRowsColumns" DropDownWidth="450px" Label="Multiple rows and columns:">
    <Items>
        <telerik:RadComboBoxItem Text="Item 1" />
        ......
    </Items>
</telerik:RadComboBox>

//css
/** Multiple rows and columns */
.multipleRowsColumns .rcbItem,
.multipleRowsColumns .rcbHovered {
    float: left;
    margin: 0 1px;
    min-height: 13px;
    overflow: hidden;
    padding: 2px 19px 2px 6px;
    width: 125px;
}

Please find attached a sample project that implements very similar scenario.

Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Hamid
Top achievements
Rank 1
answered on 26 Mar 2013, 06:19 PM
Thank you Boyan
One question: Can we only have 3 columns - can we not set it for like 5 columns ?

Sorry got the answer - width setting in css and overall width of dropdownwidth will determine the number of columns


Thanks
Hamid
Tags
ComboBox
Asked by
Hamid
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Hamid
Top achievements
Rank 1
Share this question
or