上一页 1 2 3 4 5 6 7 ··· 16 下一页
摘要: 效果图: 贴代码: 1 @(Html.DevExtreme().DataGrid<Model>() 2 .ID("gridMetting") 3 .Editing(e => e 4 .AllowAdding(true) 5 .Texts(t => { 6 t.AddRow("报备会议"); 7 }) 阅读全文
posted @ 2021-09-06 16:57 H辉 阅读(100) 评论(0) 推荐(0)
摘要: 这里只展示其中一些方式 1 全局汉化 <script src="~/js/devextreme/localization/dx.messages.zh.js"></script> //dx.messages.zh.js文件里面的内容可以根据自己的需要去修改。中文要使用unicode编码………… $( 阅读全文
posted @ 2021-09-06 16:41 H辉 阅读(272) 评论(0) 推荐(0)
摘要: 1 <script> 2 //初始化 3 $(function () { 4 alterSuccess("成功"); 5 //alterError("失败"); 6 7 8 //confirmDev("您确定要删除吗") 9 //.done((r) => { 10 // if (r) { 11 // 阅读全文
posted @ 2021-09-06 16:19 H辉 阅读(114) 评论(0) 推荐(0)
摘要: 1 ………… 2 3 @(Html.DevExtreme().DataGrid<Model>() 4 ………… 5 .ID("gridMetting") 6 .LoadPanel(n=>n.Enabled(false)) 7 .OnEditingStart("onEditingStart") 8 . 阅读全文
posted @ 2021-09-06 16:11 H辉 阅读(238) 评论(0) 推荐(0)
摘要: 1 ………… 2 3 @(Html.DevExtreme().DataGrid<Model>() 4 ………… 5 .Columns(c => 6 { 7 ………… 8 c.Add() 9 .Type(GridCommandColumnType.Buttons) 10 .Width(110) 11 阅读全文
posted @ 2021-09-06 14:55 H辉 阅读(111) 评论(0) 推荐(0)
摘要: 1 ………… 2 3 @(Html.DevExtreme().DataGrid<Model>() 4 ………… 5 6 .Paging(p => p.PageSize(10).Enabled(true)) //开启分页,指定每页记录数 7 .Pager(pager => 8 { 9 pager.Vi 阅读全文
posted @ 2021-09-06 14:43 H辉 阅读(107) 评论(0) 推荐(0)
摘要: 贴上代码: 1 ………… 2 3 @(Html.DevExtreme().DataGrid<Model>() 4 ………… 5 .KeyExpr("Id") 6 7 .Selection(s => 8 9 s.Mode(SelectionMode.Multiple) //开启多选 10 .ShowC 阅读全文
posted @ 2021-09-06 14:18 H辉 阅读(366) 评论(0) 推荐(0)
摘要: 中间件:就是嵌入到应用管道中用于处理请求和响应的一段代码。 它主要有两个作用: 1、处理请求和响应 2、决定请求是否发往下一个管道中 在 .net Core中 1.中间件就是一个RequestDelegate类型的委托 2.整个请求处理管道的创建是围绕这种IApplicationBuilder接口进 阅读全文
posted @ 2021-01-01 21:57 H辉 阅读(761) 评论(0) 推荐(0)
摘要: 上代码 1. 自定义一个中间件 public class MyMiddleware2 : IMiddleware { public async Task InvokeAsync(HttpContext context, RequestDelegate next) { await next(conte 阅读全文
posted @ 2021-01-01 21:48 H辉 阅读(352) 评论(0) 推荐(0)
摘要: //1 定义个中间件类 public class MyMiddleware { private readonly RequestDelegate _next; public MyMiddleware(RequestDelegate next) { _next = next; } public asy 阅读全文
posted @ 2021-01-01 17:53 H辉 阅读(108) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 16 下一页