void VirtualRadGridView_FilterChanged(object sender, GridViewCollectionChangedEventArgs e) { if (!this.IsInEditMode) { this.PerformFilter(); } }
private void radGridViewPacks_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { if (!copyingMode) { TextAlaram("تعدا رکورد ها: " + radGridViewPacks.Rows.Count.ToString() + " "); } }
void GridJobs_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Remove) { LoadInvoiceList(); } }
void grdLister_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Remove) { PopulateData(); } }
private void GridView_SortChanged(object sender, GridViewCollectionChangedEventArgs e) { if (e.GridViewTemplate.ChildRows != null) { CloseOtherThreads(); var ids = e.GridViewTemplate.ChildRows.Where(r => r.Cells["Id"].Value != null).Select(c => (int)c.Cells["Id"].Value).ToList(); StartThumbnailsThread(ids); } }
private void MainGridOnSortChanged(object sender, GridViewCollectionChangedEventArgs gridViewCollectionChangedEventArgs) { // var sort = gridViewCollectionChangedEventArgs.GridViewTemplate.Sort; // var split = sort.Split(' '); // SortColumn = FinalSortColumn(split[0]); // SortDirection = split[1]; //// MainPager.CurrentPage = 0; // RefrescarListado(); }
private void MainGridOnSortChanged(object sender, GridViewCollectionChangedEventArgs gridViewCollectionChangedEventArgs) { var sort = gridViewCollectionChangedEventArgs.GridViewTemplate.Sort; var split = sort.Split(' '); SortColumn = FinalSortColumn(split[0]); SortDirection = split[1]; // MainPager.CurrentPage = 0; RefrescarListado(); }
private void radGridView1_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { if (e.Action == NotifyCollectionChangedAction.Remove || e.Action == NotifyCollectionChangedAction.Add) { foreach (GridViewRowInfo row in radGridView1.Rows) { row.Cells["NoRow"].Value = row.Index + 1; } } }
private void radGridView2_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Reset) { foreach (GridViewRowInfo row in radGridView2.Rows) { row.Cells["NoRow"].Value = row.Index + 1; } } }
private void radGridView1_FilterChanged(object sender, GridViewCollectionChangedEventArgs e) { if (e.Action == NotifyCollectionChangedAction.Add || e.Action == NotifyCollectionChangedAction.ItemChanged) { dt.DefaultView.RowFilter = this.radGridView1.FilterDescriptors.Expression; } if (e.Action == NotifyCollectionChangedAction.Remove) { dt.DefaultView.RowFilter = ""; } }
private void rgvExpenses_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { try { db.SaveChanges(); } catch (Exception ex) { RadMessageBox.Show(ex.Message); } }
void grdLister_FilterChanged(object sender, GridViewCollectionChangedEventArgs e) { try { decimal InvoiceTotal = 0.00m; InvoiceTotal = grdLister.ChildRows.Sum(c => c.Cells[COLS.InvoiceTotal].Value.ToDecimal()); lblInvoiceTotal.Text = "Invoice Total: " + InvoiceTotal; } catch { } }
private void radGridView1_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { if (dt_attachments.Rows.Count == 0) { try { /////////////////////////////// Re-initializing Attach type combo DataTable dt7 = new DataTable(); OleDbDataAdapter adp7 = new OleDbDataAdapter(); adp7.SelectCommand = new OleDbCommand(); adp7.SelectCommand.Connection = oleDbConnection1; oleDbCommand1.Parameters.Clear(); string lcommand7 = "SELECT '' 'Type_ID', '' 'Type_Name' union SELECT [Type_ID],[Type_Name] FROM [DINA_QAS].[dbo].[CONF_ATTACHMENT_TYPE] WHERE [Type_Active] = 1"; adp7.SelectCommand.CommandText = lcommand7; adp7.Fill(dt7); cmb_attach_type.DataSource = dt7.DefaultView; cmb_attach_type.DisplayMember = "Type_Name"; cmb_attach_type.ValueMember = "Type_ID"; cmb_attach_type.SelectedIndex = 0; cmb_attach_type.DropDownHeight = ((dt7.Rows.Count) * (cmb_attach_type.ListElement.ItemHeight)) + 1; } catch { } } else { string query = ""; for (int i = 0; i < dt_attachments.Rows.Count; i++) { try { query = query + "AND [Type_ID] != N'" + dt_attachments.Rows[i][2].ToString() + "' "; } catch { } } /////////////////////////////// Re-initializing Attach type combo DataTable dt7 = new DataTable(); OleDbDataAdapter adp7 = new OleDbDataAdapter(); adp7.SelectCommand = new OleDbCommand(); adp7.SelectCommand.Connection = oleDbConnection1; oleDbCommand1.Parameters.Clear(); string lcommand7 = "SELECT '' 'Type_ID', '' 'Type_Name' union SELECT [Type_ID],[Type_Name] FROM [DINA_QAS].[dbo].[CONF_ATTACHMENT_TYPE] WHERE [Type_Active] = 1" + query; adp7.SelectCommand.CommandText = lcommand7; adp7.Fill(dt7); cmb_attach_type.DataSource = dt7.DefaultView; cmb_attach_type.DisplayMember = "Type_Name"; cmb_attach_type.ValueMember = "Type_ID"; cmb_attach_type.SelectedIndex = 0; cmb_attach_type.DropDownHeight = ((dt7.Rows.Count) * (cmb_attach_type.ListElement.ItemHeight)) + 1; } }
void grdLister_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { try { if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Remove) { lblTotal.Text = "Total Complaint(s) : " + grdLister.Rows.Count.ToStr(); } } catch { } }
private void grdItems_SortChanged(object sender, GridViewCollectionChangedEventArgs e) { m_sortColumnName = grdItems.SortDescriptors.ToString().Substring(0, grdItems.SortDescriptors.ToString().IndexOf(" ")); if (grdItems.SortDescriptors.ToString().Substring(grdItems.SortDescriptors.ToString().IndexOf(" ") + 1) == "ASC") { m_sortAscending = false; } else { m_sortAscending = true; } ShowItems(); }
private void grdItems_FilterChanged(object sender, GridViewCollectionChangedEventArgs e) { String strFiltro; String strValorFiltro; DataTable tblValoresFiltro = new DataTable(); tblValoresFiltro = grdItems.FilterDescriptors.ToDataTable(); if (tblValoresFiltro.Rows.Count > 0) { for (int i = 0; i < tblValoresFiltro.Rows.Count; i++) { strFiltro = tblValoresFiltro.Rows[0].ItemArray[0].ToString(); strValorFiltro = tblValoresFiltro.Rows[0].ItemArray[2].ToString(); BSItems.Filter = "[" + strFiltro + "] like '%" + strValorFiltro + "%'"; // 77 ShowItems(); } } }
private void radGridView1_GroupByChanged(object sender, GridViewCollectionChangedEventArgs e) { if (this.radGridView1.GridViewElement.GroupPanelElement.PanelContainer.Children != null && this.radGridView1.GridViewElement.GroupPanelElement.PanelContainer.Children.Count > 0) { TemplateGroupsElement templateGroupsElement = radGridView1.GridViewElement.GroupPanelElement.PanelContainer.Children[0] as TemplateGroupsElement; if (templateGroupsElement != null) { foreach (GroupElement groupElement in templateGroupsElement.GroupElements) { foreach (GroupFieldElement groupFieldsElement in groupElement.GroupingFieldElements) { if (groupFieldsElement.RemoveButton.Visibility != ElementVisibility.Visible) { groupFieldsElement.RemoveButton.Visibility = ElementVisibility.Visible; } } } } } }
private void dgw_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { lbl_Total.Text = "Cantidad de fragancias filtradas: " + dgw.RowCount.ToString(); }
private void radGridViewSelected_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { radLabelElementStatus.Text = "تعداد رکورد ها: " + radGridViewSelected.Rows.Count().ToString() + " "; }
void radGridView1_SortChanged(object sender, GridViewCollectionChangedEventArgs e) { MergeVertically(this.radGridView1, new int[] { 1, 2 }); MergeHorizontally(this.radGridView1, 2, 3); }
void VirtualRadGridView_SortChanged(object sender, GridViewCollectionChangedEventArgs e) { this.PerformSort(); }
private void radGridView1_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { Console.WriteLine("Rows changed action:{0}", e.Action); }
private void radGridView1_FilterChanged(object sender, GridViewCollectionChangedEventArgs e) { radLabelElement1.Text = @"Записей: " + radGridView1.MasterTemplate.DataView.ItemCount; }
private void radGridView1_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { }
private void ddGrid_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { calculateAmount(); }
private void radGridView1_GroupByChanged(object sender, GridViewCollectionChangedEventArgs e) { this.radGridView1.MasterTemplate.Refresh(); }
private void grdInstalment_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { dataModified = true; }
/// <summary> /// Obsługa filtrowania inline w gridzie. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">EventArgs.</param> private void CarProductCollectionGrid_FilterChanged(object sender, GridViewCollectionChangedEventArgs e) { SetFilteredElementsCountLabel(CarProductCollectionGrid.ChildRows.Count); }
private void gridView_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) { this.gridView.MasterTemplate.Refresh(this.gridView.Columns[0]); }