1

Shift Day の列を検証し、それを Unique Data に制限したい場所で、私は Days の DropDownlist を持っていますが、Kendo Grid に既にあるときにメッセージを表示したいと考えています。.

これが私の剣道グリッドです

 $("#customerContactGrid").kendoGrid({
        scrollable: false,
        sortable: true,
        pageable: true,
        dataSource: {
            transport: {
                read: {
                    url: '/Client/LoadClientCustomerLocationContactList?clientCusLocId=' + clientCusLocId,
                    dataType: "json",
                    type: "POST"
                }

            },
            pageSize: 10
        },
        rowTemplate: kendo.template($("#clientContactTemplate").html().replace('k-alt', '')),
        altRowTemplate: kendo.template($("#clientContactTemplate").html())
    });

これは私のドロップダウンリストです

<span>
                @Html.DropDownList("ddlShiftDay", new SelectList(ViewBag.ShiftList, "ID", "Display_Value", clientCustomerShiftDay), "[Please Select]",
          new Dictionary<string, object>
                {
                    {"class","validate[required] inputLong"}
                })
            </span>

これは私のコントローラーです:

private void GetShiftList()
        {
            // get status list from lookups
            var shiftlist = (from a in db.Lookups
                             where a.Domain == "AVAILABLEDAY"
                             select a).ToList();
            // add status list to a data container be called in view
            ViewBag.ShiftList = shiftlist;
        }

ユーザーがグリッド列に既に存在するデータを入力した場合にプロンプ​​トを表示するメッセージを表示するのを手伝ってくれることを願っています

4

2 に答える 2