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

[Solved] Multi-Column Support?

7 Answers 213 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
EricB
Top achievements
Rank 2
EricB asked on 06 Jun 2011, 04:12 PM
Greetings!

I was wondering if there is any way to add support to having the combobox display multiple columns?  Perhaps using a datagrid or something along those lines as the display portion of the control?

I know the Ajax controls contain a combobox that supports this but the MVC one does not seem to... Any chance you guys can add support for this to the control?

Thanks!
Eric

7 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 07 Jun 2011, 07:28 AM
Hi EricB,

 Currently we do not support multi column comboboxes and there is no workaround possible. I will log this as a feature request but I cannot commit with an exact deadline when this feature will be implemented.

I also updated your Telerik points.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Henry
Top achievements
Rank 1
answered on 30 Jun 2011, 03:57 AM
Combobox Multi column support

http://www.telerik.com/community/forums/aspnet-mvc/combobox/combobox-multi-column-support.aspx
0
John DeVight
Top achievements
Rank 1
answered on 08 Sep 2011, 02:30 AM
Hi Eric,

I'm not sure if you need this capability anymore, but I recently had to implement a multi column dropdownlist.  You can download the telerik.extensions.js file with this capability at: http://telerikmvcextendedjs.codeplex.com as well as see a screenshot and documentation on the dataBindAsTable() function at: http://telerikmvcextendedjs.codeplex.com/wikipage?title=DropDownList.  Attached is a sample project.  Here is an example of binding the data:

<%=
    Html.Telerik().DropDownList()
        .Name("dropdownlist")
        .HtmlAttributes(new { style = "width: 425px" })
%>
 
<%
    Html.Telerik().ScriptRegistrar()
        .OnDocumentReady(() =>
        {%>
            initDropdown();
        <%});
%>
 
<script type="text/javascript">
    initDropdown=function () {
        $.ajax({
            url: '/Home/GetWikiPagesAsJson',
            contentType: 'application/json; charset=utf-8',
            type: 'GET',
            dataType: 'json',
            error: function (xhr,status) {
                if(typeof console!="undefined") console.log(status);
            },
            success: function (response) {
                if(typeof console!="undefined") console.log(response);
                $('#dropdownlist').data('tDropDownList').dataBindAsTable({
                    data: response,
                    displayFields: [{
                        fieldName: "Title",
                        style: "font-weight:bold"
                    },{
                        fieldName: "Url"
                    },{
                        fieldName: "PageViews",
                        style: "color:Red;"
                    }],
                    separator: { visible: true, color: "Blue" },
                    selectedField: "Title",
                    valueField: "Id",
                });
            }
        });
    }
</script>


I can apply the same functionality to the ComboBox control as well and will see if I can get that done soon.  I'll post another message when it is done.

Regards,

John DeVight
0
Cory Deppen
Top achievements
Rank 1
answered on 24 Jan 2012, 11:55 PM
@John DeVight - I just wanted to check to see if you were still planning to release the dataBindAsTable function for the ComboBox extension. If so, do you have an idea when it might be released?
0
John DeVight
Top achievements
Rank 1
answered on 17 Feb 2012, 10:47 PM
Hi Cory,

Sorry for the delay.  I've just added it today to Change Set: 12965.  I will have documentation available at http://telerikmvcextendedjs.codeplex.com by next week.

Regards,

John DeVight
0
Jana
Top achievements
Rank 1
answered on 28 Mar 2012, 09:23 AM
Hi,

I was wondering if this control with multi-column support still supports "load on demand" and filtering?

Thanks,
Jana
0
Kurkula
Top achievements
Rank 1
answered on 01 Jan 2013, 11:53 PM
I tried adding 3 columns data to a combo box. How do we have header for that? I want to add header which should not scroll down with data. Please suggest logic for this.
Tags
ComboBox
Asked by
EricB
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Henry
Top achievements
Rank 1
John DeVight
Top achievements
Rank 1
Cory Deppen
Top achievements
Rank 1
Jana
Top achievements
Rank 1
Kurkula
Top achievements
Rank 1
Share this question
or