private void radButton1_Click(object sender, EventArgs e) { int.TryParse(dropDownLimit.Text, out this.count_per_page); this.count_no_limit = UserQuery.CountNoLimit(this.filter); int pageCount; if (this.count_no_limit % this.count_per_page > 0) { pageCount = ((this.count_no_limit / this.count_per_page) + 1); } else { pageCount = (this.count_no_limit / this.count_per_page); } if (this.page + 1 < pageCount) { page = pageCount - 1; } else { return; } BindingDataGrid(); }
private void radDropDownList1_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e) { this.page = 0; int.TryParse(dropDownLimit.Text, out this.count_per_page); this.count_no_limit = UserQuery.CountNoLimit(this.filter); BindingDataGrid(); }
private void radButton4_Click(object sender, EventArgs e) { if (page == 0) { return; } page = 0; int.TryParse(dropDownLimit.Text, out this.count_per_page); this.count_no_limit = UserQuery.CountNoLimit(this.filter); BindingDataGrid(); }
private void toolStripButton6_Click(object sender, EventArgs e) { radCheckBoxElement1.Checked = true; this.filter = ""; Filter.FrmFilterUser frmFilterUser = new Filter.FrmFilterUser(this); frmFilterUser.ShowDialog(); if (this.filter == "") { radCheckBoxElement1.Checked = false; return; } this.count_no_limit = UserQuery.CountNoLimit(this.filter); RefreshData(); }
private void radCheckBoxElement1_Click(object sender, EventArgs e) { if (radCheckBoxElement1.Checked) { this.temp_filter = this.filter; this.filter = ""; } else { this.filter = this.temp_filter; this.temp_filter = ""; } this.count_no_limit = UserQuery.CountNoLimit(this.filter); RefreshData(); }
private void toolStripButton8_Click(object sender, EventArgs e) { this.count_no_limit = UserQuery.CountNoLimit(this.filter); RefreshData(); }