Hi Greg,
Thanks for contacting Syncfusion support.
We have created a sample to achieve your requirement, which can be downloaded from the below location.
Sample Link:
http://jsplayground.syncfusion.com/pxnuomy3
In the above sample, we have bound the
maxlength attribute to the CustomerID input text box in the
actionComplete event of the Grid when the requestType is “
beginedit” or “
add”. Please refer to the below code example.
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
. . . .
actionComplete: function(args){
if(args.requestType == "beginedit" || args.requestType == "add"){
$("#"+this._id+"CustomerID").attr("maxlength",5);//preventing the number of characters by binding maxlength attribute to input box
}
}
});
});
</script>
|
Please refer to the below link for various attributes supported by input tag.
http://www.w3schools.com/tags/tag_input.asp
Regards,
Ragavee U S.