public void bind(params string[] dependants) { var q = Repository.getList(); FilterDropDownList.Items.Clear(); // cheat!!!! foreach (var item in q) { FilterDropDownList.Items.Add(item); } FilterDropDownList.DataBind(); }
public override void bind(params string[] dependants) { _ddList = Repository3.getList(dependants); clear(); foreach (var item in _ddList) { FilterDropDownList.Items.Add(item.Name); } FilterDropDownList.DataBind(); SetFeedback(); }
public virtual void bind(params string[] dependants) { var q = Repository.getList(dependants); clear(); foreach (var item in q) { FilterDropDownList.Items.Add(item); } FilterDropDownList.DataBind(); }
public override void rebind(int selectedIndex, params string[] dependants) { var q = Repository.getList(dependants); clear(); foreach (var item in q) { FilterDropDownList.Items.Add(item); } FilterDropDownList.SelectedIndex = selectedIndex; FilterDropDownList.DataBind(); SetFeedback(); }
private void WwtCombo_MouseDown(object sender, MouseEventArgs e) { State = State.Push; //if (e.X > (Width - 21) && e.X < (Width - 3)) if (e.X > 3 && e.X < (Width - 3)) { if (type == ComboType.DateTime) { if (DatePopup.Current != null) { DatePopup.Current.Close(); DatePopup.Current = null; } else { DatePopup.Current = new DatePopup(); DatePopup.Current.MasterClock = MasterTime; DatePopup.Current.Show(); DatePopup.Current.Location = Parent.PointToScreen(this.Location); DatePopup.Current.Top += 30; DatePopup.Current.DateChanged += new EventHandler(Current_DateChanged); if (!MasterTime) { DatePopup.Current.ScratchTime = this.DateTimeValue; } } } else { if (filterStyle) { FilterDropDownList.FilterValue = (Classification)Tag; } FilterDropDownList.FilterType = filterStyle; FilterDropDownList.Show(); FilterDropDownList.Location = Parent.PointToScreen(this.Location); FilterDropDownList.Top += 30; if (FilterDropDownList.Width < Width) { FilterDropDownList.Width = Width; } Rectangle rect = Screen.GetBounds(this); if (FilterDropDownList.Bottom > rect.Bottom) { FilterDropDownList.Top -= (FilterDropDownList.Bottom) - rect.Bottom; } } //FilterDropDownList.Left = Location.X; } }
private void LoadParmeters() { if (string.IsNullOrWhiteSpace(this.GetSchema())) { return; } if (string.IsNullOrWhiteSpace(this.GetView())) { return; } using (System.Data.DataTable table = MixERP.Net.BusinessLayer.Helpers.TableHelper.GetTable(this.GetSchema(), this.GetView(), "")) { FilterDropDownList.DataSource = table; FilterDropDownList.DataBind(); } }