getObj("Grid1").grid.render();
Posted: Fri Dec 14, 2012 9:49 am
Hi
I have a grid that I wanted to set the number of visible rows for. At first I was using just getObj("sfl3").grid.setNumberOfRows(get("total_rows")). This resulted in me not getting the entered data in the grid row back. I then read about having to have getObj("sfl3").grid.render(); to ensure it re-rendered correctly. Now I don't get the data back and I also get Onload Error: Object [object Object] has no method 'render' in Chrome. In IE I get no such error but when using either I don't get the entered data back.
As soon as I take off the onload js to set the number of rows and render I get the data back perfectly.
Am I doing something wrong?
Thanks
Rob.
I have a grid that I wanted to set the number of visible rows for. At first I was using just getObj("sfl3").grid.setNumberOfRows(get("total_rows")). This resulted in me not getting the entered data in the grid row back. I then read about having to have getObj("sfl3").grid.render(); to ensure it re-rendered correctly. Now I don't get the data back and I also get Onload Error: Object [object Object] has no method 'render' in Chrome. In IE I get no such error but when using either I don't get the entered data back.
As soon as I take off the onload js to set the number of rows and render I get the data back perfectly.
Am I doing something wrong?
Thanks
Rob.