工具栏中的 ShieldUI 控件?

ShieldUI Controls in Toolbar?

是否可以在工具栏中放置按钮以外的其他控件?

我想将我的列隐藏和过滤控件移到工具栏,并使导出到 Excel 按钮更小并向右浮动。

更新

<div class="grid-config">
    <div>
        Column:
        <select id="columnChooser">
            @Html.Raw(ViewBag.columnChooser) // loads columns dynamically
        </select>
        <button id="hideColumn">Hide Column</button>
        <button id="showColumn">Show Column</button>
        <div id="filter">
            Search as you type:&nbsp;<input type="text" />
        </div>
    </div>
</div>

您可以使用 toolbar.template 设置定义一个函数,通过该函数将元素动态添加到工具栏。

要使导出按钮更小,您可以使用 toolbar.buttons.cls 选项为按钮添加一个 class。或者,您可以在工具栏中呈现您自己的按钮,并在单击时调用 Grid 的 exportExcel() 函数。