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
August 13,
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
August 16,
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
August 16,