public override void Destroy()
 {
     this.sfGrid.AutoGeneratingColumn -= OnAutoGenerateColumn;
     this.sfGrid.Dispose();
     this.sfGrid    = null;
     this.viewModel = null;
 }
Exemple #2
0
        public override Android.Views.View GetSampleContent(Android.Content.Context context)
        {
            sfGrid                          = new SfDataGrid(context);
            viewModel                       = new GroupingViewModel();
            sfGrid.ItemsSource              = viewModel.ProductDetails;
            sfGrid.SelectionMode            = SelectionMode.Single;
            sfGrid.AllowGroupExpandCollapse = true;
            sfGrid.GroupColumnDescriptions.Add(new GroupColumnDescription()
            {
                ColumnName = "Product"
            });
            sfGrid.AutoGeneratingColumn  += OnAutoGenerateColumn;
            sfGrid.QueryRowHeight        += SfGrid_QueryRowHeight;
            sfGrid.AllowResizingColumn    = true;
            sfGrid.VerticalOverScrollMode = VerticalOverScrollMode.None;
            sfGrid.ColumnSizer            = ColumnSizer.Auto;
            //TableSummary codes
            GridTableSummaryRow summaryRow = new GridTableSummaryRow();

            summaryRow.Title            = "Total items:{Total} items";
            summaryRow.ShowSummaryInRow = true;
            summaryRow.Position         = Position.Bottom;
            GridSummaryColumn summaryColumn = new GridSummaryColumn();

            summaryColumn.Name        = "Total";
            summaryColumn.MappingName = "OrderID";
            summaryColumn.Format      = "{Count}";
            summaryColumn.SummaryType = Syncfusion.Data.SummaryType.CountAggregate;
            summaryRow.SummaryColumns.Add(summaryColumn);
            sfGrid.TableSummaryRows.Add(summaryRow);
            return(sfGrid);
        }
		public override Android.Views.View GetSampleContent (Android.Content.Context context)
		{
			sfGrid = new SfDataGrid (context);
			viewModel = new GroupingViewModel ();
			sfGrid.ItemsSource = viewModel.ProductDetails;
			sfGrid.GroupColumnDescriptions.Add (new GroupColumnDescription (){ ColumnName = "Product" });
			sfGrid.AutoGeneratingColumn += OnAutoGenerateColumn;
			sfGrid.QueryRowHeight += SfGrid_QueryRowHeight;
			return sfGrid;
		}
Exemple #4
0
 public override Android.Views.View GetSampleContent(Android.Content.Context context)
 {
     sfGrid             = new SfDataGrid(context);
     viewModel          = new GroupingViewModel();
     sfGrid.ItemsSource = viewModel.ProductDetails;
     sfGrid.GroupColumnDescriptions.Add(new GroupColumnDescription()
     {
         ColumnName = "Product"
     });
     sfGrid.AutoGeneratingColumn += OnAutoGenerateColumn;
     sfGrid.QueryRowHeight       += SfGrid_QueryRowHeight;
     return(sfGrid);
 }
		public override void Destroy ()
		{
			this.sfGrid.AutoGeneratingColumn -= OnAutoGenerateColumn;
			this.sfGrid.QueryRowHeight -= SfGrid_QueryRowHeight;
			this.sfGrid.Dispose ();
			this.sfGrid = null;
			this.viewModel = null;
		}