:: Forum >> Version 1 >>

Changing the value of a row cell

I'm using the grid with an XML file.
I want to dynamically change the value of a cell and refreshing the grid.

obj.setDataProperty("text""TEST"00);
obj.refresh();
 
I though this would change the value of the first column of the first tow to "TEST", but it didn't work. Something I missed ?
Adrien C.
Monday, May 30, 2005
I've been looking around, and tried to use :

table.setText("TEST", 0, 0);

[/quote]Error: setting a property that has only a getter
Source File: js/grid/xml/table.js
Line: 282[/quote]

obj.setText = function(valueij){
      var 
node this.getNode(ij);
      
node.text value// <--
};
 
Any help would be appreciated.
Adrien C.
Wednesday, June 1, 2005
Please look at this thread:

/javascript.forum.1621.5/editable-templates-with-xml-data.html

Property text is available in IE only. You have to add it to Mozilla/Firefox or use nodeValue instead
Alex (ActiveWidgets)
Wednesday, June 1, 2005
I had read that post, but I don't know how to set it up under Mozilla.
this.firstChild.nodeValue = value;
I have an error with that line, firstChild is not defined. Maybe firstChild = getNode(0,0) ?
Adrien C.
Thursday, June 2, 2005



This topic is archived.

Back to support forum

Forum search