第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

Telerik中自定義Template在排序或過濾后腳本不能用

Telerik中自定義Template在排序或過濾后腳本不能用

蕭十郎 2018-12-07 12:17:02
@model IEnumerable<HotelManageSystem.Models.BiographyOutline><link href= "@Url.Content("~/Content/TelerikGrid.css")"rel="stylesheet" type="text/css"/><script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script><script type="text/javascript"> $(document).ready(function () { $(".DeleteButton").click(function () { //根據(jù)Id刪除記錄,然后重新獲取數(shù)據(jù)加載var flag = window.confirm("確認(rèn)要?jiǎng)h除嗎?"); var deleteid = $(this).attr("deleteid"); if (flag ==true) { $.post("/Biography/Delete", { id: deleteid }, function (data) { $("#content").html(data); }); } }); $(".EditButton").click(function () { //根據(jù)Id獲取編輯員工檔案的視圖var editid = $(this).attr("editid"); $.get("/Biography/Edit", { id: editid }, function (data) { $("#content").html(data); }); }); $("#btnCreate").click(function () { //獲取添加員工檔案的視圖 $.get("/Biography/Create", null, function (data) { $("#content").html(data); }); //設(shè)置當(dāng)前位置為/Biography/Create,防止刷新跳轉(zhuǎn)到/Biography/Index $.post("HumanResources/SetSeesion", { u: "/Biography/Create" }, function () { }); }); });</script>@( Html.Telerik().Grid(Model) .Name("BioGraphyOutlineGrid") .DataKeys(keys => keys.Add(b => b.ID)) .DataBinding(dataBinding => dataBinding.Ajax() .Select("TelerikAjax", "Biography") .Delete("Delete", "Biography") ) .Sortable(sorting => sorting .SortMode(GridSortMode.SingleColumn)) .Pageable(paging => paging .Style(GridPagerStyles.NextPreviousAndNumeric) .Position(GridPagerPosition.Bottom) .PageSize(15)) .Columns(columns => { columns.Bound(b => b.ID); columns.Bound(b => b.Name); columns.Bound(b => b.Sex); columns.Bound(b => b.Department); columns.Bound(b => b.Post); columns.Bound(b => b.Degree); columns.Template(b => @Html.Raw("<input class='DeleteButton' type='button' value='刪除' deleteid='" + b.ID + "'/>" + "<input class='EditButton' type='button' value='編輯' editid='" + b.ID + "'/>")) .ClientTemplate("<input class='DeleteButton' type='button' value='刪除' deleteid='<#= ID #>'/>" + "<input class='EditButton' type='button' value='編輯' editid='<#= ID #>'/>"); }) .Selectable() .Scrollable() .Filterable())<input id="btnCreate" type="button" value="添加"/> 就是在排序或過濾后刪除和編輯的按鈕不能在調(diào)用腳本進(jìn)行相應(yīng)。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 467 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)