コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: JoelWeber/xaml-sdk
 private void OnDistinctValuesLoading(object sender, GridViewDistinctValuesLoadingEventArgs e)
 {
     if (e.Column is CollectionPropertyColumn)
     {
         e.ItemsSource = Enumerable.Empty<object>();
     }
 }
コード例 #2
0
 private void OnDistinctValuesLoading(object sender, GridViewDistinctValuesLoadingEventArgs e)
 {
     if (e.Column is CollectionPropertyColumn)
     {
         e.ItemsSource = Enumerable.Empty <object>();
     }
 }
コード例 #3
0
		private void OnDistinctValuesLoading(object sender, GridViewDistinctValuesLoadingEventArgs e)
		{
			// This will make the grid display absolutely all distinct values for 
			// each column regardless of what filters might exist on other columns.
			var filterDistinctValues = false;
			e.ItemsSource = this.radGridView.GetDistinctValues(e.Column, filterDistinctValues);
		}
コード例 #4
0
 private void clubsGrid2_DistinctValuesLoading(object sender, GridViewDistinctValuesLoadingEventArgs e)
 {
     if (e.Column.UniqueName == "Name")
     {
         e.ItemsSource = ((Telerik.Windows.Controls.RadGridView)sender).GetDistinctValues(e.Column, false).OfType <string>().Select(x => x.ToLower()).Distinct();
     }
 }
コード例 #5
0
ファイル: MainWindow.xaml.cs プロジェクト: JoelWeber/xaml-sdk
 private void clubsGrid2_DistinctValuesLoading(object sender, GridViewDistinctValuesLoadingEventArgs e)
 {
     if (e.Column.UniqueName == "Name")
     {
         e.ItemsSource = ((Telerik.Windows.Controls.RadGridView)sender).GetDistinctValues(e.Column, false).OfType<string>().Select(x => x.ToLower()).Distinct();
     }
 }
コード例 #6
0
        private void OnDistinctValuesLoading(object sender, GridViewDistinctValuesLoadingEventArgs e)
        {
            // This will make the grid display absolutely all distinct values for
            // each column regardless of what filters might exist on other columns.
            var filterDistinctValues = false;

            e.ItemsSource = this.radGridView.GetDistinctValues(e.Column, filterDistinctValues);
        }
コード例 #7
0
		private void OnRadGridViewDistinctValuesLoading(object sender, GridViewDistinctValuesLoadingEventArgs e)
		{
			GridViewBoundColumnBase boundColumn = e.Column as GridViewBoundColumnBase;
			if (boundColumn != null)
			{
				this.distinctValues.Clear();
				e.ItemsSource = this.distinctValues;

				this.distinctValuesDataSource.QueryParameters[0].Value = boundColumn.GetDataMemberName();
				this.distinctValuesDataSource.Load();
			}
		}