Jump to content

Recommended Posts

Posted

Hi!

 

Can anyone tell me why this code does not work?

 

With Comments

 

OnValidateEdit=function OnValidateEdit(e)
{            
  /*var val;
  var me = %s;
  pos  = me.getSelectionModel().getCurrentPosition();
  record = me.store.getAt(pos.row);
  colname = me.columns[pos.column].dataIndex;
  val = record.get(colname);*/

 
  alert('alert');
}
 

 

And this code does work?

 

Without Comments

 

OnValidateEdit=function OnValidateEdit(e)
{            
  alert('alert');
}

 

 

DO NOT PAY ATTENTION WHAT'S INSIDE COMMENT block because I'm adding it dynamically.

 

Thank you!

 

Bruno
 

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