All Export buttons export in excel

QuestionsAll Export buttons export in excel
Joel Gomes asked 2 years ago

Hello, i created another grid an its happening a strange thing, if i click on the export button (PDF, EXCEL or CSV) it keeps exporting only in xls format. does anyone can understand whats going on?

“export_excel”=>true, // export excel button
“export_pdf”=>true, // export pdf button
“export_csv”=>true, // export csv button
“export_html”=>false, // export html button
“search” => “advance” // show single/multi field search condition (e.g. simple or advance)

)
);

$grid[“export”] = array(“format”=>”pdf”, “filename”=>”my-file”, “heading”=>”Gestão de tempos APP”);
$grid[“form”][“position”] = “center”;
$grid[“export”] = array(“format”=>”excel”, “filename”=>”my-file”, “heading”=>”Gestão de tempos APP”);
$grid[“form”][“position”] = “center”;

1 Answers
Abu answered 2 years ago

Hi,

$grid[“export”] = array(“format”=>”excel”, “filename”=>”my-file”, “heading”=>”Gestão de tempos APP”);

This bold text segment above needs to be removed, otherwise it will override.

Also this property is set twice, perhaps by mistake.

Your Answer

1 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?