【问题标题】:DevExpress MVC GridView - SetDropDownWindowTemplateContentDevExpress MVC GridView - SetDropDownWindowTemplateContent
【发布时间】:2012-07-11 04:33:09
【问题描述】:

我正在开发 DevExpress 网格视图,发现函数调用的文档严重缺乏。在我所见的任何地方,SetDropDownWindowTemplateContent(string content) 都没有字符串内容是什么或看起来像什么的例子。我试过简单地做“Option1;Option2(因为 devexpress 声明 ';' 是分隔符)但它不起作用。

请帮忙,把我的头发拉出来。

settings.Columns.Add(col =>
{
    col.FieldName = "DefaultValue";
    col.Caption = "Rule Type Value";
    col.Width = 300;
    col.ColumnType = MVCxGridViewColumnType.DropDownEdit;
    col.SetEditItemTemplateContent(column =>
    {
        Html.DevExpress().DropDownEdit(c =>
        {
            c.Name = "ddlName";
            c.SetDropDownWindowTemplateContent("WHAT GOES HERE!?!?!");
        }).Render();
    });
});

【问题讨论】:

  • 为什么不就您的问题联系 DX 人员?

标签: asp.net-mvc gridview devexpress


【解决方案1】:

查看this 演示以了解有关如何使用此方法的更多信息。

settings.SetDropDownWindowTemplateContent(c => {
    Html.DevExpress().ListBox(
        listBoxSettings => {
            ...
        }
    ).Render();
});

【讨论】:

    猜你喜欢
    • 2014-12-06
    • 2011-12-20
    • 2014-05-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-01
    相关资源
    最近更新 更多