Automatically setting the MaxLength in your GUI

As of D2005 udpate #2 there is a new helper class in the ECO framework named MaxLengthSupportFunctions.

Normally when you databind an EditBox for example to an ECO object you are able to type endlessly despite the fact that you may have set the Eco.Length of the attribute to something small like 32.

This new helper class will identify such situations and automatically set the MaxLength property.  All you have to do is to execute the following line of code after your rhRoot has been set.



Share this article!

Follow us!

Find more helpful articles: