0

列のテキストを含む編集可能なテキスト ボックスを BootGrid に追加して、編集用にテキスト ボックスを開き、変更すると次の行に移動したり、テキスト ボックスのフォーカスを失ったりすると、データベースに保存されますか?

それ、どうやったら出来るの?

4

1 に答える 1

0
<table id="grid-keep-selection" class="table table-condensed table-hover table-striped">
    <thead>
        <tr>
            <th data-column-id="order" data-type="numeric" data-identifier="true">#</th>
            <th data-column-id="selected" data-formatter="commands" data-sortable="false">Seçili</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>@i</td>
            </tr>
            i += 1;
        }
    </tbody>
</table>


    $("#grid-keep-selection").bootgrid({
        formatters: {
            "commands": function (column, row) {
                return "<input type=\"number\" class=\"form-control\" name=\"txtSoru\" id=\"txtSoru" + row + "\" value=\"0\" min=\"0\" max=\"" + row + "\" />";
            }
        }
    });
于 2016-04-06T13:16:29.353 に答える