Using Grid inside accordion with pagination controls

Hi,

I’m trying to get a grid to appear in an accordion with pagination controls for the grid, but I’m having no luck.

What I’ve done so far is created a grid object on a div then attached the div object to the accordion, but I can’t see the pagination controls

my code looks like this

–javascript–
var grid = new dhtmlXGridObject(‘grid’);
grid.setHeader(“Date,User,Change”);
grid.enablePaging(true,5,5,“paging”,false);
grid.init();
var csv = ;
grid.parse(csv, “csv”);
accordion.cells(“gridBit”).attachObject(“grid”)

–html–

I can see the grid with limited records to 5 records in the accordion pane, but I don’t see the paging controls. And there are over 5 records so i should see the navigation controls.

Any ideas?

If you need to attach grid with paging to other DHTMLX components (dhtmlxAccordion, dhtmlxLayout, dhtmlxTabbar or dhtmlxWindows) you should use appropriate API method to attach container with grid and paging area.

Container with grid and paging area:

[code]

[/code] [code] dhxAccordion.cells("a").attachObject("paging_container"); [/code]