public XafBootstrapDropdownItem Add() { var item = new XafBootstrapDropdownItem(this); List.Add(item); return(item); }
protected void Handler_OnCallback(object source, DevExpress.Web.CallbackEventArgs e) { String[] values = String.Concat(e.Parameter).Split(new char[] { '=' }, StringSplitOptions.RemoveEmptyEntries); if (values.Count() > 1) { switch (values[0]) { case "NewValue": int id; if (int.TryParse(values[1], out id)) { SelectedItem = Items.List.Where(f => f.Index == id).FirstOrDefault(); } break; } } if (EditValueChanged != null) { EditValueChanged(this, EventArgs.Empty); } InnerRender(); if (OnClickScript != "") { ASPxLabel label = new ASPxLabel(); label.ClientSideEvents.Init = string.Format(@"function(s,e) {{ {0} }}", OnClickScript); Controls.Add(label); } }
public void Add(XafBootstrapDropdownItem Item) { if (List.IndexOf(Item) == -1) { Item.Dropdown = this; List.Add(Item); } }
protected void Handler_OnCallback(object source, DevExpress.Web.CallbackEventArgs e) { String[] values = String.Concat(e.Parameter).Split(new char[] { '=' }, StringSplitOptions.RemoveEmptyEntries); if (values.Count() > 1) { switch (values[0]) { case "NewValue": int id; if (int.TryParse(values[1], out id)) { SelectedItem = Items.List.Where(f => f.Index == id).FirstOrDefault(); } break; } } if (EditValueChanged != null) { EditValueChanged(this, EventArgs.Empty); } InnerRender(); RegisterOnClickScript(); }
public XafBootstrapDropdownItem Add() { var item = new XafBootstrapDropdownItem(this); List.Add(item); return item; }
protected void Handler_OnCallback(object source, DevExpress.Web.CallbackEventArgs e) { String[] values = String.Concat(e.Parameter).Split(new char[] { '=' }, StringSplitOptions.RemoveEmptyEntries); if (values.Count() > 1) { switch (values[0]) { case "NewValue": int id; if (int.TryParse(values[1], out id)) SelectedItem = Items.List.Where(f => f.Index == id).FirstOrDefault(); break; } } if (EditValueChanged != null) EditValueChanged(this, EventArgs.Empty); InnerRender(); RegisterOnClickScript(); }