【问题标题】:Can't drag Telerik MVC Grid column to group records无法将 Telerik MVC Grid 列拖动到分组记录
【发布时间】:2012-04-11 02:53:07
【问题描述】:

我这里有一个奇怪的情况,我有以下网格:

@(Html.Telerik().Grid(this.Model).
                    Name("grdEscolas").
                    Groupable().
                    Pageable().
                    Columns(c=>{
                        c.Bound(f => f.Nome).Title("Nome");
                        c.Bound(f => f.Endereco).Title("Endereço");
                        c.Bound(f => f.Localidade).Title("Localidade");
                        c.Bound(f => f.CEP).Title("Cep");
                        c.Bound(f => f.Telefone).Title("Fone");
}).DataBinding(binding=>binding.Ajax().OperationMode(GridOperationMode.Client)))

正如您所看到的,它应该是可分组的(它甚至显示带有空格的标题以拖动列),但是当它运行时,我们不能将任何列拖动到标题。 有趣的是,如果我这样做:

Groupable(g=>g{
g.Groups().Add(c=>c.Nome);
})

网格以正确的分组开始,但我不能再添加任何组(在执行期间),也不能重新添加我通过代码添加的组。

我做错了什么? :(

【问题讨论】:

    标签: asp.net-mvc-3 telerik-grid telerik-mvc


    【解决方案1】:

    显然从头开始创建项目解决了这个问题

    【讨论】:

      猜你喜欢
      • 2019-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-07
      • 1970-01-01
      • 1970-01-01
      • 2011-02-17
      相关资源
      最近更新 更多