telerik/ui-for-aspnet-mvc-examples

Google Map AutoComplete Confilcts

Closed this issue · 1 comments

When I use google map autocomplete function in the popup edit window, it won't save the whole line of location that google auto filled. It just saved the word I typed.

For example, I type "Calg", and I select "Calgary AB, Canada" that google suggested. Kendo only save "Calg"

Who can help me to solve this??? Thanks in advance.

    var uid = $(".k-edit-form-container").closest("[data-role=window]").data("uid"),

    model = $("#myGrid").data("kendoGrid").dataSource.getByUid(uid);

    model.set("Location", document.getElementById('Location').value);

Solved!