Esempio n. 1
0
 public override void Destroy()
 {
     sfGrid.AutoGeneratingColumn -= GridAutoGenerateColumn;
     sfGrid.Dispose();
     conditionDropdown = null;
     columnDropdown    = null;
     filterText        = null;
     columnTextView    = null;
     conditionTextView = null;
     sfGrid            = null;
     viewModel         = null;
     condtionAdapter   = null;
     gridlayout.RemoveAllViews();
     gridlayout = null;
 }
Esempio n. 2
0
		public override Android.Views.View GetSampleContent (Android.Content.Context context)
		{
            LinearLayout linear = new LinearLayout(context);
            linear.Orientation = Orientation.Vertical;
			sfGrid = new SfDataGrid (context);
			viewModel = new FilteringViewModel (context);
			viewModel.SetRowstoGenerate (100);
			sfGrid.AlternatingRowColor = Color.Rgb (206, 206, 206);
			this.sfGrid.AutoGeneratingColumn += GridAutoGenerateColumn;
			sfGrid.ItemsSource = (viewModel.BookInfo);
            filterText = new SearchView(context);
            filterText.SetQueryHint( "Enter the Text to filter");
            filterText.QueryTextChange += OnFilterTextChanged;
            viewModel.filtertextchanged = OnFilterChanged;
            linear.AddView(filterText);
            linear.AddView(sfGrid);
			return linear;
		}
Esempio n. 3
0
        public override Android.Views.View GetSampleContent(Android.Content.Context context)
        {
            LinearLayout linear = new LinearLayout(context);

            linear.Orientation = Orientation.Vertical;
            sfGrid             = new SfDataGrid(context);
            viewModel          = new FilteringViewModel(context);
            viewModel.SetRowstoGenerate(100);
            sfGrid.AlternatingRowColor        = Color.Rgb(206, 206, 206);
            this.sfGrid.AutoGeneratingColumn += GridAutoGenerateColumn;
            sfGrid.ItemsSource = (viewModel.BookInfo);
            filterText         = new SearchView(context);
            filterText.SetQueryHint("Enter the Text to filter");
            filterText.QueryTextChange += OnFilterTextChanged;
            viewModel.filtertextchanged = OnFilterChanged;
            linear.AddView(filterText);
            linear.AddView(sfGrid);
            return(linear);
        }
Esempio n. 4
0
		public override void Destroy ()
		{
			sfGrid.AutoGeneratingColumn -= GridAutoGenerateColumn;
			sfGrid.Dispose ();
			conditionDropdown = null;
			columnDropdown = null;
			filterText = null;
			columnTextView = null;
			conditionTextView = null;
			sfGrid = null;
			viewModel = null;
			condtionAdapter = null; 
			gridlayout.RemoveAllViews();
			gridlayout = null;
		}