Jump to content



Recommended Posts

TuniEdit doesn't consider the changes made to maxlength in runtime, it just keep considering the design time assigned value.


For now try this:

procedure TMainForm.UniButton1Click(Sender: TObject);
  UniSession.AddJS(UniEdit1.JSName+'.inputEl.dom.setAttribute("maxLength", "10");'+
Link to comment
Share on other sites

Thanks Delphi Developer

actuallly i tricked it with js by now, just like you suggest.

i've tested with

and btw, just for people that will use this trick... the first line does restricts the maximum length and the second avoids the warning hint about exceeding the limit, so you need both.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...