Filtre combo gets exported

My problem is when I use filter combo to the grid and then use export to pdf/excel
it includes all the options available in combo as a part of coloumn header.

I am using Export to pdf and Export to Excel in JAVA.
This is the combo I am using and the options in the combo are like"Monthly" and “Fortnightly”

But while exporting in the excel or pdf it includes the options of the combo also as the coloumn header.

And while exporting file to pdf can i choose to show the report in landscape form of the page??

I want to show only jst the column header not the option values please help me guys …

it’s incorrect behavior, it must ignore filter values.
Please, try to update dhtmlxgrid_export.js from attachment.
If still doesn’t work then provide complete demo, please. (2.96 KB)

Hi radyno,

Thank you… :smiley: :smiley: :smiley:
This helped now i m getting proper xls/pdf without combo values…

But i have another problem with my pdf file when i try to export in pdf the space for the page is not enough to fit the whole grid so it just shrinks the whole table and shows like the image given below

I want to know that can i increase the size of the pdf PAGE or change the orientation i.e. portrait or landscape? :question:

and bro i also want to have a subtotal to my grid
i.e total of the rows showing on the current page only

SO, pls tell me if u know the way to do so as far as i had seen there is no inbuilt function for subtotal so please help me with this…

you may find in gridPdfWrapper.php the follow code:

$this->cb = new TCPDFExt($orientation, 'mm', 'A4', true, 'UTF-8', false);

You may change A4 with A3. You page became bigger twice.

Unfortunately there is no way to implement total subrow.

Hi bro…

I appriciate ur help :smiley: :smiley:

But I am using JAVA for generating report so is there any way to change the page size or orrientation??

And I am having another problem when my coloumn is having & as its value and
if I am using #select_filter then it shows ‘&’ in place of & see the image given below

Thanx man for the previous help it was help full

For java you may change it in file src/com/dhtmlx/xml2pdf/

if (orientation_string.equalsIgnoreCase("landscape")) {
				orientation = A3.LANDSCAPE;
			} else {
				orientation = A3.PORTRAIT;

Don’t forget to import enumeration A3 from PDFJet jar.

Thanx for helping me again bro… :smiley: :smiley: :smiley: :smiley:

But my other issue is still remains that & error i mentioned in the earlier post so pls help me if u know something regarding that

and i also wanted to know that is there any support for page size A2-A1 in DHTMLXGRID ???
B’cos i tried to use this size bt it dosent have the required package for A2 or A1.

is there any other way from which i can give custom width or height to the page?? :question: :question: :question:

you may specify your own size like here:

if (orientation_string.equalsIgnoreCase("landscape")) {
	orientation = new double[] {842.0, 595.0};
} else {
	orientation = new double[] {595.0, 842.0};

Thnax Buddy…!!

U have helped me a lot…!!

But still I am having trouble of that & symbol problem. Image regarding that is attached in my previous posts…so if u can solve that then please help. It’s givin me some real hard time to solve that.

Thanx in advance… :smiley: :smiley: :smiley:

could you provide code of grid initialization?
This issue is not repeated at local machine.

This is the Java Script code i have used to generate this report
and the value “Call & Transect” is coming directly from database.

  var mygrid ;
function doInitGrid()
     mygrid = new dhtmlXGridObject('mygrid_container');    
    var param = getFormData(document.stocksipregistrationstopstatusreportForm);

    mygrid.setHeader("UCC,SIP Registration Mode,Investor Name,Mandate No,Partner,SIP No,SIP Submission Date,Script,SIP Start Date,SIP End Date,No Of Installments,Frequency,Investment Amount,Brokerage Rate%,Max. Investment Amount,SIP Status,Stop Request Mode,Stop Date");
    mygrid.attachHeader("#rspan,#select_filter,#text_filter, ,#rspan,#text_filter,#rspan,#text_filter,#rspan, #rspan,#numeric_filter,#select_filter,#numeric_filter,#numeric_filter,#numeric_filter,#rspan,#select_filter,#rspan");


    mygrid.attachFooter("<div id='tot1' align='right'>Grand Total :</div>,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,<div id='tot' align='right'>{#stat_total}</div>,&nbsp;,<div id='tot2' align='right'>{#stat_total}</div>,&nbsp;,#cspan,#cspan");
    mygrid.enablePaging(true, 10, 10, "pagingArea",false,"recinfoArea");
    mygrid.load("stocksipregistrationstopstatusreport.fin?cmdAction=getReportGrid&"+param, "json");


I have attached the image of the combo box only which is giving some error below

Data coming in this coloumn are “Call & Transact” and the combo box is doing filtering properly but shows the value as “Call & Transact” as shown in image…

thanx in advance

Please, try to use “edtxt” type instead of “ed”, and “txttxt” - instead of “txt”

Bro… i have used every field as a read only and i want it that way only

the value " Call & Transect " comes from database but when i am using #select-filter for that coloumn then it shows " call & transact" so this is the problem
if u can solve this issue then please help me

as i am thinking of buying this product so need some clearification regarding this tool… :bulb: :bulb:

Thank you

In case of using “ro” type you may use “rotxt”.
That allows to treat your values as pure text.

Thanx bro this helped…!!!
:smiley: :smiley: :smiley: