How to set the data of a field with EditType of NoEdit using JavaScript?

6 replies. Last post: September 22, 2010 10:48 PM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Shawn AugustMember

I have a field with EditType of NoEdit to prevent the user from editing this field.  However, I still need to set this field using JavaScript.  This is possible using the Cell's SetChanges() Method but not the Cell's SetText() method.  However, I noticed some weirdness with the SetChanges() Method where it would clear the field but leave the underlying textbox's tooltip showing previous data. This only seemed to occur when setting the text to "".


For example,

Cell.SetChanges("Hello World") = "Hello World" and tooltip of "Hello World"

Cell.SetChanges("") = "" and tooltip of "Hello World"

Cell.SetText("Hello World") = "" and tooltip of "" for field's with EditType=NoEdit

 

The Cell'sSetForceNoEdit() method generates an exception "this.CellElement" is null or not an object

All times are GMT -5. The time now is 10:38 PM.
Previous Next