小编ani*_*nax的帖子

NullReferenceException未被用户代码处理 - 对象引用未设置为对象的实例

我有以下C#类:

public class Locales
{
    public Region region { get; set; }
    public Buttons buttons { get; set; }
    public Fields fields { get; set; }
}

public class Region
{
    public Center center { get; set; }
    public East east { get; set; }
}

public class Center
{
    public string title { get; set; }
}

public class East
{
    public string title { get; set; }
}

public class Buttons
{
    public string save { get; set; …
Run Code Online (Sandbox Code Playgroud)

c# nullreferenceexception

5
推荐指数
2
解决办法
7185
查看次数

extjs列排序和排序箭头图标

我有一个项目清单.单击列标题时,列将进行排序,列标题中将显示排序箭头图标.但是,即使在过滤记录之后,该列也会保留排序和排序箭头图标(通过在过滤器文本字段中输入文本并按"过滤器"按钮).我希望每次过滤记录时都会从列中删除排序和排序箭头图标.我发现了一些关于在网格重新加载时清除排序箭头图标的帖子(请参阅下面的链接).但是我怎样才能将这个应用到我的情况中呢?任何提示将非常感激.

http://www.sencha.com/forum/showthread.php?48437-Help-How-to-remove-sort-field-when-reload-grid

http://www.sencha.com/forum/showthread.php?3098-Clear-grid-s-sort-arrow-icon

sorting extjs columnheader extjs4

4
推荐指数
1
解决办法
9249
查看次数