Welcome Guest Search | Active Topics | Sign In | Register

EO Web Treeview Edit Node Maxlength Options
TMcCabe
Posted: Wednesday, August 17, 2016 1:02:54 PM
Rank: Member
Groups: Member

Joined: 12/9/2010
Posts: 28
EO Web 11.0.66.2

I'm working with a treeview control adding and editing the content of a node and saving them back to the database. The underlying table has a length of 50 for the field being changed. When saving, I need to do side trims to prevent database errors. This results in the loss of user-entered data.

Is there a way to set Maxlength to the edit node so that it behaves more like a regular text field, blocking the user from entering excess characters? Perhaps adding the attribute to the node when it is set to be editable (jQuery .attr() or similar)?

Thank you
eo_support
Posted: Thursday, August 18, 2016 10:12:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Unfortunately no, currently there is no way to set the limit through our API. You probably want to trim the string before you pass it to your database and alert user when it is too long.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.