i want set max length 5 textbox, can please let me know how that.
@(html.kendo().textboxfor(m => m.lstpreemploymentworkflowmodel.middleinitial))
i tried doing
@(html.kendo().textboxfor(m => m.lstpreemploymentworkflowmodel.middleinitial).name("middlenm") $("#firstnm").attr('maxlength','5');
but if use .name, null value middle name in controller passed in through model.
i beleive need this:
@html.kendo().textboxfor(m => m.lstpreemploymentworkflowmodel.middleinitial) .htmlattributes(new { style = "width:50px", @maxlength = "5" }).name("middlenm")
Comments
Post a Comment