The filename which KoolGrid export can be changed by using property FileName of ExportSettings.
$grid->ExportSettings->FileName="Report";
Note: The file extension will be added according to the exporting function that you called. For example, if you call ExportToPDF(), the extension ".pdf" will be attached to the filename.
span style="color: #ff0000;">"/KoolGrid/library/tcpdf/config/lang/eng.php""/KoolGrid/library/tcpdf/tcpdf.php""/KoolAjax/koolajax.php";
$koolajax->scriptFolder = $KoolControlsFolder."/KoolAjax""/KoolGrid/koolgrid.php"//This $db_con link has been created inside KoolPHPSuite/Resources/runexample.php
$ds->SelectCommand = "select customerNumber,customerName,phone,city from customers""grid");
$grid->scriptFolder = $KoolControlsFolder."/KoolGrid";
$grid->styleFolder="default""655px";
//Enable Ajax Mode
//Add loading image
$grid->AjaxLoadingImage = $KoolControlsFolder."/KoolAjax/loading/5.gif""FileName""FileName""ExportToPDF""form1" method="post""margin-bottom:10px;padding:10px;width:635px;background:#DFF3FF;border:solid 1px #C6E1F2;""textbox" id="FileName" name="FileName" value="<?php echo $grid->ExportSettings->FileName?>"/>
<br/><br/>
<input type="submit" name="ExportToPDF" value = "Export to PDF"