【问题标题】:How to make Kendo dropdown select always visible inside Kendo grid如何使剑道下拉选择始终在剑道网格内可见
【发布时间】:2015-03-17 23:14:40
【问题描述】:

我试图在剑道网格中放置一个简单的选择,但没有运气。选择不显示。知道我需要做什么吗?

这是我的代码:

JS

 $(document).ready(function () {
        $("table").kendoGrid({
            autoBind: true,
            scrollable: false,
            sortable: false,
            selectable: false,
            filterable: false
        });
    });
 $(document).ready(function () {
     $('select').kendoDropDownList();

 });

HTML

<table style="min-height:400px;">
    <thead>
        <tr>
            <th>ALL Vaults</th>
            <th>
            </th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>1</td>
            <td>
                <select>
                    <option>option 1</option>
                    <option>option 2</option>

                </select>
            </td>
        </tr>
        <tr>
            <td>2</td>
            <td>
                <select>
                    <option>option 1</option>
                    <option>option 2</option>

                </select>
            </td>
        </tr>
        <tr>
            <td>3</td>
            <td>
                <select>
                    <option>option 1</option>
                    <option>option 2</option>

                </select>
            </td>
        </tr>
    </tbody>
</table>

http://jsfiddle.net/rFDD6/458/

【问题讨论】:

    标签: select kendo-ui kendo-grid


    【解决方案1】:

    您无法使用此配置实现您想要的效果。见demo

    function DropDownEditor(container, options) {
        $('<select data-bind="value:' + options.field + '"><option>option 1</option><option>option 2</option></select>')
            .appendTo(container)
            .kendoDropDownList();
    }
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-08
    • 1970-01-01
    • 1970-01-01
    • 2020-11-30
    相关资源
    最近更新 更多