예제 #1
0
 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() + "            ");
     }
 }
예제 #3
0
 void GridJobs_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Remove)
     {
         LoadInvoiceList();
     }
 }
예제 #4
0
 void grdLister_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Remove)
     {
         PopulateData();
     }
 }
예제 #5
0
 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);
     }
 }
예제 #6
0
 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();
 }
예제 #7
0
 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();
 }
예제 #8
0
 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;
         }
     }
 }
예제 #9
0
 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;
         }
     }
 }
예제 #10
0
 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 = "";
     }
 }
예제 #11
0
 private void rgvExpenses_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     try
     {
         db.SaveChanges();
     }
     catch (Exception ex)
     {
         RadMessageBox.Show(ex.Message);
     }
 }
예제 #12
0
        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 { }
        }
예제 #13
0
 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
     {
     }
 }
예제 #15
0
 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();
 }
예제 #16
0
        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();
                }
            }
        }
예제 #17
0
 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;
                     }
                 }
             }
         }
     }
 }
예제 #18
0
 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() + "         ";
 }
예제 #20
0
 void radGridView1_SortChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     MergeVertically(this.radGridView1, new int[] { 1, 2 });
     MergeHorizontally(this.radGridView1, 2, 3);
 }
예제 #21
0
 void VirtualRadGridView_SortChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     this.PerformSort();
 }
예제 #22
0
 private void radGridView1_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     Console.WriteLine("Rows changed action:{0}", e.Action);
 }
예제 #23
0
파일: ListSurvey.cs 프로젝트: Vla00/alone
 private void radGridView1_FilterChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     radLabelElement1.Text = @"Записей: " + radGridView1.MasterTemplate.DataView.ItemCount;
 }
예제 #24
0
 private void radGridView1_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
 }
예제 #25
0
 private void ddGrid_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     calculateAmount();
 }
예제 #26
0
 private void radGridView1_GroupByChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     this.radGridView1.MasterTemplate.Refresh();
 }
 private void grdInstalment_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     dataModified = true;
 }
예제 #28
0
 /// <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);
 }
예제 #29
0
 private void gridView_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     this.gridView.MasterTemplate.Refresh(this.gridView.Columns[0]);
 }