public override void LoadValue(Dictionary <string, object> item) { base.LoadValue(item); _dateTimeValue = (DateTime)item[_args.Column.Field]; _originalDateTimeValue = _dateTimeValue; _input.Value(formatTime(_dateTimeValue, _formatString)); _input.Select(); }
private void SetDefaultValue() { if (_input != null) { _input.Value((_defaultValue != null && _defaultValue.Value != null) ? _defaultValue.Value.ToString() : null); _input.Select(); } }
public override void LoadValue(Dictionary <string, object> item) { defaultValue = (string)item[_args.Column.Field]; if (defaultValue == null) { defaultValue = ""; } input.Value(defaultValue); input[0].SetAttribute("defaultValue", defaultValue); input.Select(); }
public override void LoadValue(Dictionary <string, object> item) { defaultValue = NumberEx.Format((Number)item[_args.Column.Field], numberFormatInfo); if (defaultValue == null) { defaultValue = ""; } input.Value(defaultValue); input[0].SetAttribute("defaultValue", defaultValue); input.Select(); }
public override void LoadValue(Dictionary <string, object> item) { DateTime currentValue = (DateTime)item[_args.Column.Field]; _defaultValue = currentValue != null ? currentValue : null; string valueFormated = _defaultValue != null?_defaultValue.ToLocaleDateString() : String.Empty; if (_args.Column.Formatter != null) { valueFormated = _args.Column.Formatter(0, 0, _defaultValue, _args.Column, null); } SetSelectedValue(_defaultValue); _input.Select(); }
/// <summary> /// Set the editor control value. /// </summary> /// <param name="item"></param> public override void LoadValue(Dictionary <string, object> item) { defaultValue = (bool)item[_args.Column.Field]; if (defaultValue) { input[0].SetAttribute("checked", "checked"); } else { input[0].RemoveAttribute("checked"); } input[0].SetAttribute("defaultValue", defaultValue); input.Select(); }
public override void LoadValue(Dictionary <string, object> item) { // Get currency symbol string currencySymbolString = getCurrencySymbol((EntityReference)((EntityBuiltInAttributes)((object)item)).TransactionCurrencyId); currencySymbol.Text(currencySymbolString + " "); Money value = (Money)item[_args.Column.Field]; defaultValue = ""; if (value != null) { defaultValue = NumberEx.Format(value.Value, numberFormatInfo); } input.Value(defaultValue); input[0].SetAttribute("defaultValue", defaultValue); input.Select(); }