【问题标题】:How to filtering date with date format (dd.MM.yyyy) in grid infragistic jquery?如何在网格基础 jquery 中使用日期格式(dd.MM.yyyy)过滤日期?
【发布时间】:2012-04-25 12:39:24
【问题描述】:

我在 jquery 中有代码:

我使用json获取数据的来源。

这是示例http://samples.infragistics.com/jquery/grid/advanced-filtering

               $("#tbl-visit-schedule").igGrid({
                   columns: [
            { headerText: "Date", key: "Date",dataType:"date",format:"dd.MM.yyyy" },
            { headerText: "Name", key: "Name", dataType: "string" },
            { headerText: "Siegle", key: "Siegle", dataType: "string" },
            { headerText: "Group", key: "Group", dataType: "string" },
            { headerText: "Status", key: "Status", dataType: "string" },         
            {headerText: "Action", key: "Action", dataType: "string" }
            ],
                   width: "550px",
                   height: "400px",
                   dataSource: jsonp,
                   features: [

             {
                 name: 'Filtering',
                 allowFiltering: true,                     
                 type: 'local' 

             }
        ]
               });

【问题讨论】:

  • 我希望过滤器格式日期列更改为 'dd.MM.yyyy' 而不是 'MM/dd/yyyy'。 [对不起英语不好] :)

标签: jquery date grid filtering infragistics


【解决方案1】:

日期格式实际上仅用于显示目的。无论应用何种格式,过滤仍然相同。

【讨论】:

    【解决方案2】:

    您可以查看控件的本地化。默认情况下,Infragistics 确实提供了一些语言环境,而保加利亚语的语言环境与您正在寻找的格式相似。您可以在help 中查看更多关于本地化的信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-06
      • 1970-01-01
      • 2015-03-29
      • 1970-01-01
      • 2011-10-05
      • 1970-01-01
      • 2013-01-19
      • 1970-01-01
      相关资源
      最近更新 更多