:: Forum >>

Paging Patch Causes Error

Greetings.

Just tried the paging patch but when I add:

obj.setProperty("row/pageSize", 5);

I get an "Object doesn't support this property or method."

Any thoughts,
Brian
Brian Fredette
Friday, August 13, 2004
Hello everyone.

Still can't seem to track down where this is comming from. In mozilla I get:

Error: this[set[property]] is not a function
Source File: https://w3eng.btv.ibm.com/js/grid/runtime/lib/grid.js
Line: 23

Any ideas?

Brian
Brian
Monday, August 16, 2004

I'll suggest changing the /grid/runtime/lib/grid.js to /grid/source/lib/grid.js and then debug it... Mozilla has in-built JS debugger support...

Cheers,

Sudhaker Raj
Monday, August 16, 2004
Thanks for the reply.

My problem was that I wasn't using the correct code to setup the grid. I didn't put in:

//replace the built-in row model with the new one (defined in the patch)
obj.setModel("row", new Active.Rows.Page);

obj.setProperty("row/count", 197);
obj.setProperty("column/count", 11);
obj.setProperty("data/text", function(i, j){return myData[i][j]});
obj.setProperty("column/texts", myColumns);

// set page size
obj.setProperty("row/pageSize", 15);

like the paging1.htm file.

Regards,
Brian Fredette
Monday, August 16, 2004

This topic is archived.


Back to support forum

Forum search