【问题标题】:XamGrid doesn't allow to select empty textXamGrid 不允许选择空文本
【发布时间】:2013-04-02 03:53:54
【问题描述】:

我正在使用 Infrgistics XamGrid [InfragisticsWPF4.Controls.Grids.XamGrid.v12.1.dll (12.1.20121.1010)]。我有一种情况,用户无法过滤以仅选择空文本。过滤器在选择非空文本的情况下工作正常,但包括空文本在内的任何组合都会排除空行。例如。在下面提供的示例中,如果用户尝试选择“PTL_D_IMA”和空文本,过滤器的结果结果是只有一行具有“PTL_D_IMA”,而其他两行空文本不会出现。

<ig:XamGrid x:Name="myGrid" ItemsSource="{Binding Source={StaticResource TestDataItems}}">
 <ig:XamGrid.FilteringSettings>
 <ig:FilteringSettings AllowFiltering="FilterMenu"FilteringScope="ColumnLayout" />
 </ig:XamGrid.FilteringSettings>
 </ig:XamGrid>

 public class TestDataItems  
{ 
private string name; 
public string Name 
{
 get { return name; }  
 set { name = value; } 
} 
}

public class TestData : ObservableCollection<TestDataItems> 
{ 
 public TestData() 
 { 
  Add(new TestDataItems { Name = "PTL_D_IMA"}); 
  Add(new TestDataItems { Name = "PTL_D_PCHCYL"}); 
  Add(new TestDataItems { Name = "PTL_D_ICN"}); 
  Add(new TestDataItems { Name = "PTL_D_PRFI"}); 
  Add(new TestDataItems { Name = "PTL_D_IPH"}); 
  Add(new TestDataItems { Name = ""}); 
  Add(newTestDataItems { Name = string.Empty }); 
  Add(newTestDataItems { Name = "PTL_D_PTCYL"}); 
  Add(new TestDataItems { Name = "PCGM"}); 
  Add(new TestDataItems { Name = "COD_SUS"}); 
 } 
}

【问题讨论】:

    标签: wpf wpf-controls infragistics wpf-4.0 xamgrid


    【解决方案1】:

    这已在 NetAdvantage for WPF 的服务版本中得到解决。只要您注册了产品密钥,您就可以从My Keys and Downloads 页面下载服务版本。如果您正在使用试用版并希望获得服务版本,则可以通过运行平台安装程序来安装它,并确保选中检查更新或安装服务版本的选项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-01
      • 2015-05-29
      • 2011-07-26
      • 2020-07-21
      • 2017-10-26
      • 1970-01-01
      相关资源
      最近更新 更多