當我從列表中選擇(點擊)所需記錄時,如何從列表視圖移動到編輯視圖?從視圖(URL)移動到另一個onclick動作
我可以做我想要的,當我點擊一個特定的按鈕,因爲它是在下面的代碼清除,但我想要刪除此按鈕,並用點擊操作取代它。
誰能幫幫我嗎?
{ title: '@Resources.General.View', template: '<a href="ViewIndividuals?individualsNo=#=IN_InNo#" class="btn btn-default btn-bordered" ><i class="fa fa-eye"></i></a>' },
這是我的代碼: var grid = $("#MyGrid").kendoGrid({ dataSource: ds, // inject common kendo settings @Html.Partial("_kendo_JS_Setting") columns: [ { field: "IN_InNo", width: 100, title: '@WebHelper.LocalResources(this, "IndividualsNumber")' }, { field: "IN_Name", width: 100, title: '@Resources.General.Name' }, { field: "IN_Address1", width: 100, title: '@WebHelper.LocalResources(this, "IN_Address1")' }, { field: "IN_Mobile1", width: 100, title: '@WebHelper.LocalResources(this, "IN_Mobile1")' }, { field: "IN_CreationDate", width: 100, title: '@Resources.General.CreationDate', template: "#= kendo.toString(kendo.parseDate(IN_CreationDate, 'yyyy-MM-dd'), 'MM/dd/yyyy') #", groupable: false }, { field: "IN_CreatedBy.FullName", width: 100, title: '@Resources.General.CreatedBy' }, @{ field: "ModificationDate", width: 100, title: '@Resources.General.LastUpdate' }, { field: "ModifiedBy.FullName", width: 100, title: '@Resources.General.ModifiedBy' },@ { title: '@Resources.General.View', template: '' }, @{ title: '@Resources.General.Edit', template: '' }, { title: '@Resources.General.Delete', template: '' }, { title: '@WebHelper.LocalResources(this, "Attachments")', template: '' },@ ] }).data("kendoGrid"); // add tooltip
這是我的代碼: {title:'@Resources.General.View',模板:''}, – Moro
請修改原來的文章在評論中增加相關信息。 –