Good day guys,
I have a problem where i have grid with popup custom window editor. in the pop window I have a MultiColumnComboBox which i can use to update the field which is bound to the MultiColumnComboBox field in the popup window. now the problem comes when some of the fields return the ID and not the string text field which is very weird. have a look at the attached screenshots.
I have the multicomlumncombobox configures as below in the custom popup window
@(Html.Kendo().MultiColumnComboBox()
.Name("NameAbbreviation")
.DataTextField("NameAbbreviation")
.DataValueField("AccoutID")
.ValuePrimitive(true)
.AutoBind(false)
.Filter("contains")
.Placeholder("--Search/Select Mine---")
.FilterFields(new string[] { "AccountType", "Status", "NameAbbreviation", "Company", "Minerals" })
.Columns(columns =>
{
columns.Add().Field("AccountType").Title("AccountType").Width("130px");
columns.Add().Field("Status").Title("Type").Width("130px");
columns.Add().Field("NameAbbreviation").Title("Manufacturer").Width("350px");
columns.Add().Field("Company").Title("Company").Width("350px");
columns.Add().Field("Minerals").Title("Minerals").Width("130px");
})
.Events(e => e.Select("onParkarBayComboSelect"))
.HtmlAttributes(new { style = "width:100%" })
.Height(204)
.FooterTemplate("Total <strong>\\#: instance.dataSource.total() \\#</strong> items found")
.DataSource(source => {
source.Custom()
.ServerPaging(true)
.PageSize(80)
.Type("aspnetmvc-ajax") //Set this type if you want to use DataSourceRequest and ToDataSourceResult instances
.Transport(transport => transport
.Read(read =>
{
read.Action("ParkerBay_GetMineDetails_Read", "SiteCodes");
}))
.Schema(schema =>
{
schema.Data("Data") //define the [data](https://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-schema.data) option
.Total("Total"); //define the [total](https://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-schema.total) option
});
}).ToClientTemplate()
)