Exemple #1
0
 public override void Destroy()
 {
     this.sfGrid.QueryRowHeight -= HandleQueryRowHeightEventHandler;
     sfGrid.Dispose();
     sfGrid    = null;
     viewModel = null;
 }
		public override void Destroy ()
		{
			this.sfGrid.QueryRowHeight -= HandleQueryRowHeightEventHandler;
			sfGrid.Dispose ();
			sfGrid = null;
			viewModel = null;
		}
Exemple #3
0
        public override Android.Views.View GetSampleContent(Android.Content.Context context)
        {
            sfGrid                        = new SfDataGrid(context);
            sfGrid.ColumnSizer            = ColumnSizer.None;
            sfGrid.SelectionMode          = SelectionMode.Single;
            sfGrid.QueryRowHeight        += HandleQueryRowHeightEventHandler;
            viewModel                     = new AutoRowHeightViewModel();
            sfGrid.AutoGeneratingColumn  += GridAutoGenerateColumns;
            sfGrid.ItemsSource            = (viewModel.ReleaseInformation);
            sfGrid.VerticalOverScrollMode = VerticalOverScrollMode.None;
            sfGrid.Alpha                  = 0.87f;

            if (MainActivity.isTablet)
            {
                GridTextColumn sno = new GridTextColumn();
                sno.MappingName         = "SNo";
                sno.HeaderText          = "S.No";
                sno.ColumnSizer         = ColumnSizer.Auto;
                sno.HeaderTextAlignment = GravityFlags.Center;
                sno.TextAlignment       = GravityFlags.Center;
                this.sfGrid.Columns.Insert(0, sno);
                this.sfGrid.ColumnSizer = ColumnSizer.Star;
            }
            return(sfGrid);
        }
Exemple #4
0
 public override Android.Views.View GetSampleContent(Android.Content.Context context)
 {
     sfGrid = new SfDataGrid(context);
     sfGrid.QueryRowHeight       += HandleQueryRowHeightEventHandler;
     viewModel                    = new AutoRowHeightViewModel();
     sfGrid.AutoGeneratingColumn += GridAutoGenerateColumns;
     sfGrid.ItemsSource           = (viewModel.EmployeeInformation);
     return(sfGrid);
 }
		public override Android.Views.View GetSampleContent (Android.Content.Context context)
		{
			sfGrid = new SfDataGrid (context);
			sfGrid.QueryRowHeight += HandleQueryRowHeightEventHandler;
			viewModel = new AutoRowHeightViewModel ();
			sfGrid.AutoGeneratingColumn += GridAutoGenerateColumns;
			sfGrid.ItemsSource = (viewModel.EmployeeInformation);
			return sfGrid;
		}