implementing combox in header and paging in grid

hello sir





using some samples of dhtmlXGrid i created new grid but i hav 2 problems in it .



1) in combobox which is at header do not show other option than “all authors”



2) paging not done properly where as i use the method enablePaging(); and give id as recinfoArea, pagingArea to two td tags of table

but it do not shows the number of records and next & forward button.



the whole code is as

[code]





























JSP Page

























































[code end]



sir the two method not working are

i) mygrid.cells2(i,2).getValue();

ii) mygrid.getRowsNum()



  1. There is no need to populate combobox, this can be done automaticlly if you use #combo_filter as header value. Like this: dhtmlx.com/docs/products/dht … combo.html
    2. Using Paging you do not need to enable SmartRendering

Try to set attachHeader method before init() call:

mygrid.setHeader(“Sales,Title,Author,Price,In Store,Shipping,Bestseller,Published”);
mygrid.attachHeader("#rspan,

,

,#rspan,#rspan,#rspan,#rspan,#rspan");

We have tested the provided code. It works correctly: combo has options with all authors and paging works.

If problem persists, please, contact us at the support@dhtmlx.com and provide your ref. number. We will send you the sample with the latest grid files.