Loading...

Indonesia English Beta Arabic Italian Japanese

Sabtu, 28 Oktober 2017

DevExtreme ASP.NET MVC: New Strongly-Typed HTML Helpers (Lambda Expressions Ftw!) - v17.2

Strongly-typed HTML helpers are great when you're constructing your view in ASP.NET MVC. Helper methods like the built-in @Html.TextBoxFor(m => m.FirstName) have been around for a long time. And they provide benefits like compile-time checking of views, Razor support, and enable the use of data annotations to automatically configure important options like validation rules.

Since we released the DevExtreme ASP.NET MVC Controls, they have included a set of HTML helper methods to help you do things like setting up the DevExtreme editors. For example, here we're creating a DevExtreme MVC DateBox control that will be bound to our OrderDate field from the model:
1
@Html.DevExtreme().DateBoxFor(m => m.OrderDate)
In one line, we're creating the editor and binding it, magic!

More Lambda Expressions

In the next major release, v17.2, we've extended the ability to use expressions within our HTML helpers. We have added more lambda expressions to our larger widgets. This allows to use them to configure items like:
  • DataGrid and TreeList columns
  • DataGrid summaries
  • PivotGrid fields
  • Items of our Form control
Copyright © 2010-2017 Odrha23Share. All rights reserved.

| ODRHA23

Informasi | Hubungi | Hak Cipta