BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
@layout.html page <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>@ViewBag.Title - My ASP.NET Application</title> @Styles.Render("~/Content/css") @Styles.Render("~/Content/ej/web/default-theme/ej.web.all.min.css") @Scripts.Render("~/bundles/modernizr") @Scripts.Render("~/Scripts/jquery-3.1.1.min.js") @Scripts.Render("~/Scripts/jsrender.min.js") @Scripts.Render("~/Scripts/ej/ej.web.all.min.js") <script src="~/Scripts/ej.culture.pt-BR.min.js"></script> </head> |
@Grid @(Html.EJ().Grid<object>("FlatGrid") .Datasource((IEnumerable<object>)ViewBag.datasource) .AllowPaging() /*Paging Enabled*/ . . . .Locale("pt-BR") .Columns(col => { . . . col.Field("OrderDate").HeaderText("Order Date").TextAlign(TextAlign.Right).Width(80).Format("{0:dd/MM/yyyy HH:mm:ss}").Add(); })) |
@Grid @(Html.EJ().Grid<object>("FlatGrid") .Datasource((IEnumerable<object>)ViewBag.datasource) .AllowScrolling() .AllowPaging() /*Paging Enabled*/ . . . .Locale("pt-BR") .ClientSideEvents(e=>e.ActionComplete("actionComplete")) .Columns(col => { . . . })) @action complete event function actionComplete(args) { if (args.requestType == "beginedit") { texts = { today: "hoje", timeNow: "Hora agora", done: "feito", timeTitle: "tempo" }; placeholder = "Selecionar encontrotempo"; dateTimeobject = $(".e-datetimepicker").data("ejDateTimePicker");; //create a datetime picker instance dateTimeobject.setModel({ "locale": "pt-BR", buttonText: texts, watermarkText: placeholder }); //Now change the button text for corresponding } } |
function actionComplete(args) { . . . //changing the tooltip format $(".e-datepicker").eq(0).ejDatePicker({ tooltipFormat: "ddd dd MMM yyyy", locale: "pt-BR" }); } } |