Jump to content

Add Separator in UniEdit


Ario.Paxaz

Recommended Posts

Hi

 

My Friend give me below code

function change(sender, newValue, oldValue, eOpts)
{
     var separator = ",";
  var int = sender.value.replace ( new RegExp ( separator, "g" ), "" );
  var regexp = new RegExp ( "\\B(\\d{3})(" + separator + "|$)" );
  do
  {
    int = int.replace ( regexp, separator + "$1" );
  }
  while ( int.search ( regexp ) >= 0 )
  sender.setValue(int);
}

and i put it in ClientEvent.ExtEvent.change.and it done very faster than my issue.

But when add it to my code by dynamic ,it don't work.

 

sywv_1.jpg

Where it must be add ?

 

 

Best Regards.

Link to comment
Share on other sites

Hi

 

 

 

 

clientEvents > ExtEvents

 

I copy it ,and work very good.

But my question is : when i want use it dynamic,Which event must be use ?

As you see in my pic ,I use it in onchange of uniedit,but it don't work.

 

Best regards.

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.

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