public override IList <string> UpdateSourceWithEditorValue(GridViewCell gridViewCell) { List <String> errors = new List <String>(); Grid gridPanel = gridViewCell.GetEditingElement() as Grid; DatePicker editor = gridPanel.FindChildByType <DatePicker>(); if (editor.SelectedDate.HasValue) { Value = LDateTime.DateToString(editor.SelectedDate.GetValueOrDefault(), ApplicationConstant.defaultDateTimeFormat); } else { Value = ""; } BindingExpression bindingExpression = this.ReadLocalValue(ColumnsMaskDateTime.ValueProperty) as BindingExpression; if (bindingExpression != null) { bindingExpression.UpdateSource(); foreach (ValidationError error in Validation.GetErrors(editor)) { errors.Add(error.ErrorContent.ToString()); } } return(errors.ToList()); }
public override IList <string> UpdateSourceWithEditorValue(GridViewCell gridViewCell) { List <String> errors = new List <String>(); RadComboBox editor = gridViewCell.GetEditingElement() as RadComboBox; BindingExpression bindingExpression = this.ReadLocalValue(ColumnsComboBoxv1.GiaTriProperty) as BindingExpression; if (bindingExpression != null) { bindingExpression.UpdateSource(); foreach (ValidationError error in Validation.GetErrors(editor)) { errors.Add(error.ErrorContent.ToString()); } } return(errors.ToList()); }
public override IList <string> UpdateSourceWithEditorValue(GridViewCell gridViewCell) { List <String> errors = new List <String>(); RadMaskedNumericInput editor = gridViewCell.GetEditingElement() as RadMaskedNumericInput; BindingExpression bindingExpression = editor.ReadLocalValue(RadMaskedNumericInput.ValueProperty) as BindingExpression; if (bindingExpression != null) { bindingExpression.UpdateSource(); foreach (ValidationError error in Validation.GetErrors(editor)) { errors.Add(error.ErrorContent.ToString()); } } return(errors.ToList()); }