Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はMVCTelerikグリッドを使用しています。新しいレコードを追加している間、テキストボックスを取得しています。これらの入力コントロールでは、例:20の最大文字数を制限する必要があります。
私を助けてください..事前に感謝します
特定の列のID(例:codeId)を取得し、maxlengthonEditクライアントイベントのプロパティを追加できます。グリッドには、入力フィールドに必要な小道具が含まれている関数javascriptで記述されたそのイベントのOnEditクライアントイベントがあります。
$("#elementId").prop("maxlength",'your max length for restriction');