:: Forum >>

"add a Row" Oddities....

Possibly I missed something obvious here... (so please tell me)

I find that in "examples\new\add delete row.htm"
If I change the data set, to a js array, (so than new rows are NOT automagically filled on creation. Not much works after the row add, that is sort stops working, etc. as well had no cells show up for that new row. If I (in the add row code)then fill each cell with SOMETHING, it works.

HOWEVER I can find NO way to get the row or cells to SHOW if I am using the "CSV" method of including data. It just doesn't show the cells or allow sorting or much of anything... IDEAS?

What do I need to do?

thanks
-geoff



G. Cayman
Thursday, February 2, 2006
So far add/delete row and cell editing works only with JS array. CSV/XML models are read-only.
Alex (ActiveWidgets)
Thursday, February 2, 2006
Is this also True for

obj.setCurrentRow(10);

That is: this is NOT suppoed to work yet, with CSV/XML???

SEE:
http://www.activewidgets.com/javascript.forum.11260.0/2-0rc1-great-minor-problems.html
G. Cayman
Thursday, February 2, 2006
No, it should work, but you have to call this method after the data is loaded, otherwise the grid (including selection) is cleared during table.response() call.
Alex (ActiveWidgets)
Thursday, February 2, 2006
If you take the example, in old\that loads CSV,
Put
obj.setCurrentRow(10);

AFTER the load,

"
For example if you add the single line
obj.setCurrentRow(10);
to the example:
old\data - csv text file.htm

It then won't render correctly on load?
But fixes itself after moving the slider..."


It DOES NOT render correctly..
IN IE...

thanks
-g
G Cayman
Thursday, February 2, 2006
Give it a few "timeout" , just enough to finish the first rendering process:
window.setTimeout(function(){ obj.setCurrentRow(15); }, 100 );
Carlos
Thursday, February 2, 2006

This topic is archived.


Back to support forum

Forum search