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

[Solved] combobox multi-columns

8 Answers 173 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Thierry Treunet
Top achievements
Rank 1
Thierry Treunet asked on 07 Aug 2009, 09:17 AM
Hello,

I have in my website a combobox multi-columns.

I define the columns like the online example : http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx

my code is :

<telerik:RadComboBox ID="Pays" runat="server" Height="190px" Skin="Sunset"
                        Width="320px" MarkFirstMatch="true"  EnableLoadOnDemand="true" HighlightTemplatedItems="true"
                        ItemRequestTimeout="500"  OnItemsRequested="Pays_ItemsRequested" OnItemDataBound="Pays_ItemDataBound" DataSourceID="SqlDataSource1" ExpandDelay="1">
                        <HeaderTemplate>
                            <ul>
                             <li class="col2">Pays</li>
                             <li class="col1">Lieu</li>
                            </ul>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <ul>
                             <li class="col2"><%# DataBinder.Eval(Container.DataItem, "Designation") %></li>
                             <li class="col1"><%# DataBinder.Eval(Container.DataItem, "Information_supp1")%></li>
                            </ul>
                        </ItemTemplate>
                <CollapseAnimation Duration="200" Type="OutQuint" />
             </telerik:RadComboBox>

When visualize the page the combobox don't have columns like a grid but it have bulleted list

Can you help me?

Thanks




8 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 10 Aug 2009, 08:31 AM
Hi Thierry Treunet,

Did you include the necessary CSS classes on your page /col1, col2/? Do you see any errors on the page?

Regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Thierry Treunet
Top achievements
Rank 1
answered on 10 Aug 2009, 09:04 AM
thank you for your response



yes il have the code in my css file :

.col1,  .col4, .col5
        {
            float: left;
            width: 75px;
            margin: 0;
            padding: 0 5px 0 0;
            line-height: 14px;
        }
        .col2
        {
            float: left;
            width: 150px;
            margin: 0;
            padding: 0 5px 0 0;
            line-height: 14px;
        }

and in my page i have :     <link href="App_Themes/style_common.css" rel="stylesheet" type="text/css" />

I have an error in my masterpage : the element 'ScriptManager' isn't known element

do you think this error blocked my combobox?
because other components used css file are working.

thanks
0
Veselin Vasilev
Telerik team
answered on 10 Aug 2009, 01:51 PM
Hello Thierry Treunet,

Our controls, as well as any other ajax controls, require ScriptManager on the page. Alternatively, you can use RadScriptManager.

Kind regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Thierry Treunet
Top achievements
Rank 1
answered on 10 Aug 2009, 04:07 PM
I use RadcriptManager and I haven't any error but my combobox is not displayed well

Do you have another idea to help me?

thanks
0
Veselin Vasilev
Telerik team
answered on 11 Aug 2009, 08:37 AM
Hello Thierry Treunet,

Please find attached a sample project.

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Thierry Treunet
Top achievements
Rank 1
answered on 11 Aug 2009, 08:56 AM
hello,

I want to use the first kind of combobox in this example : http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx

do you have a sample project with this combobox?

thanks
0
Veselin Vasilev
Telerik team
answered on 11 Aug 2009, 11:20 AM
Hello Thierry Treunet,

Here it is.

Regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Thierry Treunet
Top achievements
Rank 1
answered on 13 Aug 2009, 08:31 AM
Thanks you for your help

I had two link to my css page in my masterpage.

I delete one and my combobox display correctly.

best regards
Tags
ComboBox
Asked by
Thierry Treunet
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Thierry Treunet
Top achievements
Rank 1
Share this question
or