Suppose I have a MultiColumnComboBox like below. How can I have like 10 columns in it but hide specific ones of them? I need the data from the additional columns when the user makes a selection but, I don't want them to show. So in the example below, how could I hide the ID, and Inst columns? I think it would be done in the dataBound event but no idea how to do it.
--Rich
@(Html.Kendo().MultiColumnComboBox()
.Name("MainSched")
.DataTextField("Room")
.DataValueField("Room")
.Columns(columns =>
{
columns.Add().Field("ID").Title("ID").Width("100px;");
columns.Add().Field("Room").Title("Room").Width("100px;");
columns.Add().Field("Inst").Title("Inst").Width("100px;");
columns.Add().Field("MKey").Title("MKey").Width("100px");
})
.HtmlAttributes(new { @class = "FontSmall" })
.Height(400)
.DataSource(source => source
.Custom()
.Transport(transport => transport
.Read(read =>
{
read.Action("MainSched_Read", "Home");
})))
.Events(events => events.Change("MainSched_Change").DataBound("MainSchedDataBound"))
)