Back to Devexpress

ASPxClientEdit Class

aspnet-js-aspxclientedit-2bf1dded.md

latest1.9 KB
Original Source

ASPxClientEdit Class

Serves as the base object for all the editors that support validation.

Declaration

ts
declare class ASPxClientEdit extends ASPxClientEditBase

Remarks

This object is the base for the client-side editors which allow its value to be validated. It implements the common client-side functionality which allows you to respond to focus moving in or out of the editor, and perform different validation related operations.

How to clear all editors in a container

For a full example, see Data Editors - Inplace Validation demo.

aspx
<script type="text/javascript">
     function clearEditors(s, e) {
          var container = document.getElementsByClassName("clientContainer")[0];
          ASPxClientEdit.ClearEditorsInContainer(container);
     }
</script>
<div id="ServerContainer" class="clientContainer" runat="server">
     <%--Editors that are cleared on the Clear button click--%>
     …
</div>
<dx:ASPxButton ID="btnClear" runat="server" AutoPostBack="False" Text="Clear" CausesValidation="False">
     <ClientSideEvents Click="clearEditors" />
</dx:ASPxButton>

See also Data Editors - Null Text demo.

Inheritance

ASPxClientControlBase ASPxClientControl ASPxClientEditBase ASPxClientEdit ASPxClientBinaryImage

ASPxClientCalendar

ASPxClientCheckBox

ASPxClientListEdit

ASPxClientTextEdit

ASPxClientTrackBar

See Also

ASPxClientEdit Members