Jump to content

Recommended Posts

Posted

I cannt post in "Active Reports", so i drop it here...

 

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

 

Tnanks

Posted

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);
begin
  UniSession.AddJS(UniEdit1.JSName+'.inputEl.dom.setAttribute("maxLength", "10");'+
                   UniEdit1.JSName+'.maxLength=10;'
  );
end;
Posted

Thanks Delphi Developer

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

i've tested with 0.99.96.1322.

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.

Join the conversation

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

Guest
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...