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

MultiColumnComboBox's selected value not sent to server when in Grid popup editor

1 Answer 238 Views
MultiColumnComboBox
This is a migrated thread and some comments may be shown as answers.
Emily
Top achievements
Rank 1
Emily asked on 11 Sep 2019, 02:10 PM

I have a Grid with a custom popup editor. Inside the popup editor, I have a MultiColumnComboBox.

 

When I select a value in the MultiColumnComboBox and click Update button in the editor, the Update method does not get fired. When I console out e.model on the save event, dirty flag is false, dirtyFields is empty and contact_id is null.

 

@Html.LabelFor(model => model.contact_id)
@(Html.Kendo().MultiColumnComboBoxFor(model => model.contact_id)
                .AutoBind(false)
                .Placeholder("Select Contact...")
                .DataTextField("contact_number")
                .DataValueField("id")
                .Columns(columns =>
                {
                    columns.Add().Field("contact_number").Title("Id");
                    columns.Add().Field("contact_name").Title("Name");
                })
                .Filter(FilterType.Contains)
                .DataSource(source =>
                    {
                        source.Read(read =>
                            {
                                read.Action("SearchContact", "Manager").Data("getContactData").Type(HttpVerbs.Post);
                            })
                            .ServerFiltering(false);
                    })
                )

1 Answer, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 13 Sep 2019, 10:04 AM

Hi Emily,

 

I examined the configuration and the MultiColumnComboBox should work as expected in the Grid. One thing that could cause the behavior is the way values are submitted. Would you set the ValuePrimitive option to true and see how the behavior changes?

Also, make sure that you are using the latest version of the components. The current official version is 2019.2.619.

 

Regards,
Viktor Tachev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
MultiColumnComboBox
Asked by
Emily
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or