I have a grid using edit Pop-up, the pop-up contain a DropDownList.
The problem is that if i saved two records in the grid. When i open the edit pop-up of the first record and select a new item in the DropDownList then close the pop-up. After that, i open the edit pop-up of the second record and select a same item in the DropDownList (for example, open the pop-up and it bind a selected item "Product1" to the dropdownlist, then i open the dropdownlist and select the "Product1" again). It wrongly triggered the change event. May i know how can i avoid the above problem? Thanks.
cshtml:
01.@(Html.Kendo().DropDownListFor(model => model.Product)02..Name("EditProduct")03..DataTextField("ProductName")04..DataValueField("ProductID")05..Filter("contains")06..HtmlAttributes(new07.{08. @class = "form-control",09. data_bind = "value: ViewModel.Product, source: ViewModel.ProductList, events: { change: Functions.ProductChanged }",10. data_required_msg = @String.Format(@Error.RequiredField, @Wording.lblProduct),11. required = "required",12. style = "height: 2.9em;",13. @tabindex = 114.})15.)
Javascript:
1.self.PageModel = new kendo.data.ObservableObject(self.PageModel);2.kendo.bind(publicAccess.Container(), self.PageModel);
