pedrisco Posted September 20, 2016 Posted September 20, 2016 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 Quote
Sherzod Posted September 20, 2016 Posted September 20, 2016 I cannt post in "Active Reports", so i drop it here... Hi, Please visit here: http://forums.unigui.com/index.php?/topic/6291-important-announcement/ Best regards Quote
Sherzod Posted September 20, 2016 Posted September 20, 2016 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; Quote
Sherzod Posted September 20, 2016 Posted September 20, 2016 Which version and edition UniGUI are you using ?! Quote
pedrisco Posted September 21, 2016 Author Posted September 21, 2016 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.